search for: messagequeue

Displaying 2 results from an estimated 2 matches for "messagequeue".

2004 Jul 22
0
Re: FXRuby and Threads (was: radiobuttons are weird in 1.2.x series)
...the client we have: Read thread created when client connects to the server: @sock = TCPSocket.new(host, PORT) Thread.new do loop do # Queues up messages until they can be handled by client message = @sock.readMsg @queueMutex.synchronize { @messageQueue.push message } end end During the FXRuby chore the queue is checked and a single message is processed, if available: def nextMessage # Pull off the first message (if there is one) if @queueMutex.try_lock message = @messageQueue.shift @queueMutex.unlock...
2001 Oct 17
1
save cpu !
Hello everybody ! I have just installed Wine. I have test it with several programs and I find it is wonderfull ! When I am running MSWLogo (a Logo environment) on Wine, it eats all my CPU. The problem is not very important if I start one session, but if I start several sessions, it becomes a real problem. In our school we have a big Linux server and 24 x-terms ... Is it possible to introduce a