Date: Mon, 14 Aug 2000 11:58:29 +0200 From: Jonas Bulow <jonas.bulow@servicefactory.se> To: hackers@freebsd.org Subject: freebsd and non-preemtive threads Message-ID: <3997C2C5.83AFE056@servicefactory.se>
next in thread | raw e-mail | index | archive | help
I'm trying to build a preforked and threaded server. When it comes to the threading part it seems that non-preemtive threads have a lot of benefits if the server is a statefull-server. What I'm trying to say is that the server is not going to do a lot of computation for each request. The server will simply update it's state and respond about it's success. In this situation preemtive threads creats more harm than good becuase of the fact that the thread don't know when the next context switch will happen and therefor must do locking and stuff for the resources it uses. I have found two packages for non-preemtive threads: "State Threads Library for Internet Applications", http://oss.sgi.com/projects/state-threads/ and GNU-Pth. Is there anyone who has any experience of these or have any comment about these? Is it possible to have the FreeBSD pthreads to be non-preemtive? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3997C2C5.83AFE056>