On Wed, 1 Aug 2001, Mike Abbott wrote:
[*]Unless your pthreaded application is fairly simple I would imagine that
[*]converting it to state threads would probably require redesigning it
[*]from scratch. But since state threads are so much simpler to use than
[*]pthreads the mechanics of the switch should be pretty easy. You won't
[*]need mutexes any more. You won't have to bother with pthread_attr_t's
[*]and other barfage. You will need to ensure that every blocking I/O call
[*]uses its st_ wrapper.
Hmm, I was just looking at how to deal with a pthread_detach call.
And since I'm not a programmer, this could take a while 8-)
There are lots of wrapper methods for the pthread functions
(did I mention this app is in C++). So....
[*]All that being said, state threads are not appropriate for every
[*]application. Remember this mantra too: State threads are best for
[*]network data driven apps. Pthreads may work better for other kinds of
Yeah, this is a network server which is why ST looked compelling
anyway. Thanx tho!
[*]Michael J. Abbott mja@xxxxxxx www.repbot.org/mike