> Furthermore, is there any need to destroy semaphores when the > connection goes away? Are they a limited OS resource? Semaphores are a limited OS resource, but their allocation doesn't slow down significantly until you create 20,000 or so. I just pushed 200,000 on a stack for fun. 1 semaphore is a non-issue.