From: David W. <wo...@pl...> - 2002-10-12 00:51:05
|
Hey folks, Well, this threading stuff is just too much fun!! I've added a small project to cvs (on shemp) called thread-test. Check it out and read through it. Basically it just creates ten threads that do busy work (an empty loop) and then quits. I have created a thread superclass called SnfsThread. We should be able to inherit from it whenever we want "thread-like" behavior. Note, before you run it you may want to change the number of iterations in the busy loop (in TestThread.cpp) because I had to make it fairly large for my 2GHz machine. It works on Linux and Solaris, but on Solaris the threads do not do any timesharing so we'll have to do some tuning. Hopefully, Nate, you can add some network stuff to get these threads to model the server setup. Let me know what you think! dw -- ---------------------------------------------------------------- I encourage correspondence using GnuPG/OpenPGP encryption. My public key: http://www.cs.plu.edu/~dwolff/pgpkey.txt |