pthreads
Environment: slink, g++ (egcs-2.91.60), libc6-2.0.7.19881
Hi,
I am developing a C++ socket class that I wish to operate completely
independently from the caller. To do this, I am trying to use pthreads to
spawn a listening thread that will handle all coenection requests. I do this
quite often and succesfully on NT, but when I compile with g++ I get the
error that it can't find "pthread_create" or "pthread_join", two functions I
use. I tried explicitly telling g++ to use the /lib/libpthreads-0.7-1.so,
but it still comes back with the same error. This seams to be the only
pthread on my system so I wonder what's going on.
Secondly I am assuming that the pthread implementation is similar to the
Win32 implementation is as much a thread of execution is assigned by the
scheduler and shares process memory and resources with all the other threads
defined for that process. I seem to remember something about all threads
sharing the processes time quanta, but if anyone wants to expound I would be
very obliged.
TIA
---------------------------------------------------------------
| Simon Martin | "By definition, all software is faulty. |
| Project Manager | It is just a mere coincidence if it |
| Isys | ever seems to work" ;-) |
---------------------------------------------------------------
mailto: smartin@isys.cl
Powered by Debian Linux
Reply to:
- Follow-Ups:
- pthreads
- From: Ossama Othman <othman@cs.wustl.edu>
- Re: pthreads
- From: Jason Gunthorpe <jgg@ualberta.ca>