Re: [Valgrind-users] threads to queue [long]

2008-11-02 Thread tom fogal
(Re-send -- only sent to Darryl the first time (oops!)) First, you've pointed out an error in my earlier mail. I definitely meant `unlock; syscall; lock' in my implementation idea, but got confused. I mention it inline, but some of the answers above it might not make sense, so I wanted to clarif

Re: [Valgrind-users] threads to queue [long]

2008-11-02 Thread Darryl Miles
tom fogal wrote: > Darryl Miles <[EMAIL PROTECTED]> writes: >> tom fogal wrote: > It doesn't; I wrote this before I understood your `acquire a > VG-internal lock at syscall entry' implementation, and didn't come > back and edit. > > I don't see how that's not a scheduler. Each thread essentially

Re: [Valgrind-users] threads to queue [long]

2008-11-02 Thread tom fogal
Darryl Miles <[EMAIL PROTECTED]> writes: > tom fogal wrote: > > One thing I neglected to think about earlier is how one would do a > > `Can I still run?' check. There is no notification to a user process > > when a context switch comes back. > > > > Remember that valgrind instruments instructions

Re: [Valgrind-users] threads to queue [long]

2008-11-01 Thread Darryl Miles
tom fogal wrote: > One thing I neglected to think about earlier is how one would do a > `Can I still run?' check. There is no notification to a user process > when a context switch comes back. > > Remember that valgrind instruments instructions. You means a context switch occurred due to timesli

Re: [Valgrind-users] threads to queue [long]

2008-11-01 Thread tom fogal
Darryl Miles <[EMAIL PROTECTED]> writes: > tom fogal wrote: > > Darryl Miles <[EMAIL PROTECTED]> writes: > >> Julian Seward wrote: > >> Then on the return from the system call the current thread checks to see > >> if it is still allowed to run, if it is not allowed to run it suspends > >> itself.