473,466 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Requesting Example code: Threads and Messaging

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

Nov 15 '05 #1
4 1194
In article <11**********************@o13g2000cwo.googlegroups .com>,
<gm********@yahoo.com> wrote:
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.

Nov 15 '05 #2
gm********@yahoo.com writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #3
On Tue, 19 Jul 2005 13:41:39 GMT, ga*****@yin.interaccess.com (Kenny
McCormack) wrote in comp.lang.c:
In article <11**********************@o13g2000cwo.googlegroups .com>,
<gm********@yahoo.com> wrote:
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.


Takes one to know one.

*plonk*

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 15 '05 #4
In article <8s********************************@4ax.com>,
Jack Klein <ja*******@spamcop.net> wrote:
On Tue, 19 Jul 2005 13:41:39 GMT, ga*****@yin.interaccess.com (Kenny
McCormack) wrote in comp.lang.c:
In article <11**********************@o13g2000cwo.googlegroups .com>,
<gm********@yahoo.com> wrote:
>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.


Takes one to know one.


You would know.

(Rubber and glue...)

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ajay | last post by:
hi! i have an application that runs on a pocket pc. the application has a server which responds to UDP requests. each request contains the address of another server (say, server_b). the pocket...
2
by: Dennis Owens | last post by:
I want to develop a Client/Server messaging system that does not require Microsoft messaging. I want to use the .Net remoting, but I am having some real problems with the remoting. The remoting...
0
by: Dennis Owens | last post by:
Read below for previous conversation. We are developing an application that will some day run on anything from a computer down to a PDA (this is were the Lightweight comes in). The messaging...
1
by: CLEAR-RCIC | last post by:
I have a piece of code that works in C# but when I convert it to VB.Net I get the following error: "Cannot deserialize the message passed as an argument. Cannot recognize the serialization format."...
3
by: kathyk | last post by:
Hi All, I am using Access 2003 on machines with windows 2000 and XP. The problem I'm having started only after we got a new image for our PC's. This database app has been around for awhile and...
3
by: Bob Lazarchik | last post by:
Hello: I need to fire events between two threads. Any suggestions on the best way to accomplish this. Scenerio: Thread A is main thread. Thread B is a Com port listener that fires an event...
1
by: Simon Verona | last post by:
I have an application, that starts with a "menu" form. Each menu item points to a method in differing class libraries... which I start up in a seperate thread (so that the menu is still active). ...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
2
by: jparulan | last post by:
Hi All, I am developing web service that does not use IIS, I was successful on deploying a normal web service with System.Data and System.Web namespaces. BUT when I added the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.