PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

sockets and pipes.... 5194


Your Ad Here

Your Ad Here

RHEL high percentage of processor time from system
Linux 2.4.21-37.ELsmp #1 SMP I'm running RHEL on a dual Xeon box. When I run any kind of Fortran program that I've compiled, the system load is very high, for example: 64 processes...

-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160

Dondo

RHEL high percentage of processor time from system 5196
I have a data-intensive set of programs, using IBM's DB2 V8.1.7 (IIRC). I used...

Sounds like your master process will have at least two threads: one for prioritizing and performing your reads and writes to your devices, and one for communicating with the children and queuing requests for the r-w thread. Perhaps one r-w thread and message queue for each device (one for bus, one for each serial port) would be better.

If you want to cache values and your master process is mulbreasthreaded, you will have to have a synchronized data structure to put those values in. The question is whether any additional synchronization issues from giving children access to the structure will be more or less complicated than managing pipes-sockets.

Yeah, the semantics should be the same. You can either have one thread-process for each connection, or use the ONONBLOCK flag to deal with blocking. One thread per connection should introduce the same synchronization issues as a shared data structure, so nonblocking I-O would probably be the way to go over sockets.

You might also consider a watchdog process to handle bane errors, or maybe that's sort of what the timeout threads you mentioned earlier do.

- -- Neil T. Dantam Student, Purdue University -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU-Linux)

iD8DBQFDUoAWkZoFyDoa1YARA84yAJ9+wP75vvoTmuhF1TahS4hH909bFACeMkPe Y6q2AKD2TrzwoC1yP7wYjco= =7p3L -----END PGP SIGNATURE-----



Your Ad Here

List | Previous | Next

RHEL high percentage of processor time from system

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

sockets and pipes.... 5193