Re: pthreads and poll()

2001-08-13 Thread Daniel M. Eischen
Jonathan Chen wrote: > Yesterday marked my first attempt at mixing poll() with pthreads. > Needless to say, things did not work out the way I wanted them to. So, I > began the task of finding out the behaviors of various OSes to see if my > code would run fine on them. For your reference and amu

Re: pthreads, semaphores and wait

2000-11-30 Thread Daniel M. Eischen
"Dimitar V. Peikov" wrote: > > I've tryed to make some example on using pthreads and semaphores and found > that process became blocked if inside of critical section use wait, uwait or > nanowait finctions. In the attached file if change line : (#if 0) to (#if 1) > the program hangs. I've tested

Re: The stack size for a process?

2000-01-17 Thread Daniel M. Eischen
Iani Brankov wrote: > > Matthew Dillon wrote: > > [snip] > > > At your csh prompt type 'limit'. If you are using bash type 'ulimit -a'. > > > > When I compile and run your program it works fine on my box. I tried > > compiling it -O0, -O1, and -O2. > > > > % cc x.c -o x -O0 >

Re: Preemptiveness of FreeBSD threads

2000-01-17 Thread Daniel M. Eischen
> First, I must say that this all concernes quite current > CURRENT (Jan 9 or so). I don't know if the same holds for > older versions. > > I'm kind of puzzled. > > I've a simple sample program (see at the bottom). It creates 10 > threads with start function start_my_thread(), and then runs the