Subj : Re: Boss Told Me You Can't Use Semaphore, But I Have To Do Something like It! To : comp.programming.threads From : David Schwartz Date : Tue Jul 12 2005 08:42 pm wrote in message news:1121175011.436906.63140@z14g2000cwz.googlegroups.com... > My boss says I am not allowed to use semaphores due to > unexplained reasons. No joke, you do this: You tell your boss that you will not do things unless you understand the reason why. Explain to him that this is not neogtiable. While he will suffer the disadvantage that he will have to spend some time convincing you of things, he will get the advantage that you will never do things without a good reason. If he considers that a disadvantage, then he needs to find another employee. I have lost two jobs in 20 years because of this attitude. I'm quite sure I am *much* better off in both cases. The big advantage is that now people know that if I wrote code, it will not suck and everything will be done for a logical reason. So *my* reputation is the biggest winner. You should care about your reputation. In the long run, it's not worth it to work for idiots. This may or may not be an example of idiocy, but I wouldn't take the risk. By the way, you can always use a file and protect it with file locks. Otherwise, you'd need something ugly like a process-shared mutex. DS .