View Single Post
  #2 (permalink)  
Old 08-16-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
In general, waiting mutexes do not consume any CPU resources while they are waiting.

I need to better understand what your application is doing:
  • Are the client and server collocated, i.e., in the same process?
  • If not collocated, do you run them on the same host (a dual-processor machine)?
  • If not collocated, how many threads do you have in the server-side thread pool?
  • Are the calls to consume() oneway or twoway?

As an aside, I don't recommend to call lock() and unlock() directly. You should use one of the Lock classes instead, which lock in the constructor and unlock the the destructor. This is safer, especially with respect to exceptions.
Reply With Quote