[Ilugc] time slice

  • From: priya0207@xxxxxxxxxxxxxx (priya sridhar)
  • Date: Wed Sep 13 21:14:01 2006

 ?
like there are two identical threads which perform the function of putting a 
long string into the memory. the two strings are almost equal in length. but 
the time taken by one thread to finish execution is in the order of milli sec 
while the other is in the order of micro sec. i dont quite comprehend the 
difference.and i am not sure how to find out the time slice cos the thread is 
not getting pre empted.

On Wed, 13 Sep 2006 Noorul Islam K M wrote :


i want to find the time slice for each thread when there are several 
threads executing concurrently.i have created threads using posix thread 
library. when i use gettimeofday to find this out,its showing erratic 
values each time i run.is there a method to find out the time slice?


Can you give some statistics?

Other related posts: