Project 2 sleep

31 views
Skip to first unread message

Joshua Claxton

unread,
Mar 2, 2012, 5:50:53 AM3/2/12
to asu-cse-430
Would you like for our program to sleep between context switches so
you can see what's going on or just let it run at computer speed?

thanks

Joshua Claxton

unread,
Mar 2, 2012, 5:54:48 AM3/2/12
to asu-cse-430
I think i may have answered my own question.

I had previously put the sleep() functionality inside run and yield in
threads.h (which would defeat purpose of threading), but I changed it
so that the sleep was in each infinite looping function in
thread_test.c (which is used for creating a testing environment.)
Reply all
Reply to author
Forward
0 new messages