On Tue, Sep 14, 1999 at 08:21:14AM -0500, Robert M. Hyatt wrote:
>
> if you are going to go to that much trouble, why not write a driver
> that does four fork() calls and then a wait() to wait for one of them
> to terminate. When the wait returns, fork() another process, and keep
> this going.
>
> this wouldn't be but 20-30 lines of code, and you could make the number
> of processors a command-line option that would make your 'thing' run
> cleanly on 1, 2, 4 or N processor machines...
>
> I could help you if you need it..
>
I second this approach--this is what I was going to suggest. I have
done it this way before, and find that it works elegantly.
Brendan
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]