On Fri, Apr 07, 2000 at 09:43:31PM +0200, Arjan van de Ven wrote:
> You do realise there is some unexpected behavior in your program?
> Instead of creating 200 threads, you create 200! threads.
>
> You basically do
>
> for (t=0;t<200;t++) {
> fork();
> }
The actual code contains
for(t=0;t<PROCESSES;t++)
if (fork()==0)
{
....
Where PROCESSES is 200.
Do you see the difference? :-)
Regards
Andrey V.
Savochkin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:11 EST