Requesting Example code: Threads and Messaging

G

gmtonyhoyt

Okay here's the situation. What I'm looking for, is a sort of generic
wrapper or API that will allow me to build threads with some kind of
messaging system attached with it. The idea is that these individual
threads will each handle small messages to each other, where each
thread managed to perform a seperate operation, yet their may be some
inter-dependance.

This is a Network based application, it recieves messages from client
machines, and then each message must be transmitted to a specific
thread. Don't worry about the incomeing networking message and how it
gets processed to the appropreate thread since that's pretty much
handled. So lets say I have Thread A and B. Sometimes, their will be
situations where A will want to send Data to B, then recieve a reply
from B, before continuing with it's job. What's the best way to do
that?

As for details, I'm looking for basic C code (obviously) that'll run
on a Sparc/Solaris 8+ machine. Sun Forte C 5.0 and GCC 2.95.3 are my
compilers of choice. Any thoughts? Anyone can point out any good code
examples for what I want?

Tony
 
K

Kenny McCormack

Okay here's the situation. What I'm looking for, is a sort of generic
wrapper or API that will allow me to build threads with some kind of
messaging system attached with it. The idea is that these individual
threads will each handle small messages to each other, where each
thread managed to perform a seperate operation, yet their may be some
inter-dependance.

Troll.
 
K

Keith Thompson

Okay here's the situation. What I'm looking for, is a sort of generic
wrapper or API that will allow me to build threads with some kind of
messaging system attached with it.
[...]

Standard C has no support for threads, so this is off-topic here.
You might try comp.programming.threads.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
ScottChare

Latest Threads

Top