#!/bin/ksh
#	Need to get inter-CPU activity going as well.
#

nfind=2
ncc=3

while [ $nfind -gt 0 ]
do
	(while true
	 do
		find / -type f -exec cat {} \; > /dev/null 2>&1
	 done) &
	let "nfind=$nfind-1"
done

while [ $ncc -gt 0 ]
do
	(while true
	 do
		cp ../disks/diskio.c /usr/tmp/diskio${ncc}.c
		cc -O -o /usr/tmp/diskiotmp${ncc} /usr/tmp/diskio${ncc}.c
		rm /usr/tmp/diskiotmp${ncc} 
	 done)&
	let "ncc=$ncc-1"
done

#
#	OK
#
echo "unix stress started"
