Re: Some more info about CONNECT/ACCEPT problem.

From: Tim Walberg (tewalberg@mediaone.net)
Date: Fri Apr 07 2000 - 15:29:07 EST


>> 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();
>> }
>>
>> So you get this
>>
>> t number of threads
>> 0 1
>> 1 2
>> 2 4
>> 3 8
>> etc
>>

Actually, I believe that results in 2^200 (not quite
as many as 200!) threads, but the end result's the same... ;oP

                                tw

-- 
+--------------------------+------------------------------+
| Tim Walberg              | tewalberg@mediaone.net       |
| 828 Marshall Ct.         | www.concentric.net/~twalberg |
| Palatine, IL 60074       |                              |
+--------------------------+------------------------------+


- 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 : Fri Apr 07 2000 - 21:00:19 EST