help-gnubatch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gnubatch] gbch-xq


From: John Collins (personal)
Subject: Re: [help-gnubatch] gbch-xq
Date: Tue, 26 Oct 2010 08:48:30 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101006 Lightning/1.0b2 Thunderbird/3.1.5

On 26/10/10 06:00, Jan Schampera wrote:
John Collins (personal) wrote:

The solution is to stop using message queues which is exactly what I'm doing in the new version.

What (are you using|do you want to use) for IPC now?

Jan

It's using UNIX domain sockets for what the message queue used to be used for which has several advantages as well as the one we've been talking about.
  1. We don't need the extra copy of btsched to catch network messages and put them on the message queue.
  2. You can select for data on that as well as the other things and do timeouts all at the same time with one syscall.
  3. gbch-xq and other such creatures can talk straight to the remote copy of btsched without "bothering" the local copy.
  4. You need less TCP ports allocated.
The scheduling stuff is now done using threads and each level of the job queue hierarchy has its own thread. So there is only one multi-threaded btsched.

--
John Collins address@hidden
Phone: +44 (0)1707 883174 Mobile: +44 (0)7958 387247 Work Phone: +44 (0)1707 886110
3 Mandeville Rise, Welwyn Garden City, Herts, AL8 7JT, UK

reply via email to

[Prev in Thread] Current Thread [Next in Thread]