Using interface create four threads multiple execution test Program?
Using interface create four threads multiple execution test Program. Each child thread waits for other child thread to finish while parent thread is to finish in last. Also check active status of each thread before and after printing the jobs of all threads. (Number of Jobs means the number of time its loops and prints its task job it is three (3), e.g. First thread at it first iteration of loop it will print First = 3 and at second it will print First = 2 and finally at third First = 1)
Public Comments
- You need to create a threadhandle first for each thread: ThreadHandle[1] = CreateThread (NULL, 0, TheCodeItWillRun, &ParameterOfTheCode , 0, &ThreadID); The threadID variable should be a dword then to wait for each one, just implement: WaitForMultipleObjects( NumberOfThingsToWait, ThreadHandle, TRUE, timeToWait); That example is in C++. But it is basically the same logic for every language. Like my calculus professor used to say to us, the rest is carpentry. Good Luck
- Dear Student, Please Slove your VU assignments yourself, because they are for your practice and improvements. Regards
Powered by Yahoo! Answers