[openbeosnetteam] Thread safety...
- From: "David Reid" <dreid@xxxxxxxxxxxx>
- To: "OpenBeOS Network Team" <openbeosnetteam@xxxxxxxxxxxxx>
- Date: Wed, 1 May 2002 00:59:02 +0100
Talking with Howard again he brought up some intersting points about the
stack. The main one being that we need to very, very careful about thread
safety, and I think the strange KDL I'm getting at the moment is due to this
very problem.
Quick recap, BSD is basically single process. It uses interrupts to trigger
things, but basically the entire stack is a single process. Our stack is
multi-threaded and hence the issues we need to resolve are likely to be
different.
Why have I not been more concerned? Until now we haven't had many
multi-threaded worries as virtually everything running was simple test apps.
This is no longer the case. So, suggestions for working through and making
ourselves more thread safe? I'm thinking initially about the structure we
may have trouble with (such as sockets) and the best ways of protecting them
without killing performance.
I've been playing with some stuff, but it's hard when you screw up the
locking and have to reboot :)
david
Other related posts:
- » [openbeosnetteam] Thread safety...