Ok, so im new here ^^ hello,
Ill start by explaining how my server works, each level creates the level below.
Mainthread
DatabaseGatewaythread
Client1thread Client2thread Client3thread Client4thread
DatabaseConn DatabaseConn DatabaseConn DatabaseConn
OK so now the problem i have is i want the client threads to share a semaphore so i can make sure only one Database connection
is present at one time. But the only way i can see of doing that is to have it in a parent
thread which the child threads couldn't access, is
there anyway sibling threads could access the same semaphore?
if anyone understands this id appreciate any ideas, comments regarding my stupidity may also lead to results so are equally welcome.