DWORD WINAPI threadWork(LPVOID threadNo)
{
//local variables
double y;
const double x=3.14159;
const double e=2.7183;
int i;
const int napTime=1000;//in milliseconds
const int busyTime=400;
int tNo=((INTEGER*)threadNo)->data;
int sleepTime;
DWORD result=0;
/*randomasize the random num seeds.*/
srand((unsigned int)time (NULL));
while(runFlag)
{
//Parameterized processor burst phase