On Tue, Oct 14, 2008 at 05:45:50PM -0700, Darren Reed wrote: > With the limitations that are built in with chill(), plus the > implementation being a busy-wait, I'd like to suggest that > another method for "suspending" the current thread's > operation: yield(). > > The premise of it is the same as the system/function call: > remove the current thread from the CPU and encourage > it to schedule another one for execution. > > The target of this is race condition testing using dtrace.
Hey Darren, So it would just poke the current thread off the CPU? That could be pretty tricky, and we'd have to do it asynchronously with respect to the probe firing. I'd suggest that you might be better served by using the stop() action and the system() action with prun(1) to get it moving again. Adam -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl _______________________________________________ dtrace-discuss mailing list [email protected]
