By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

passing messages between threads at run time

P: n/a
Hi,

I'm very new to csharp. I'm learning basics. Is it possible to send
messages to threads at runtime at c sharp? if so please guide me in
doing that.

Thanks is advance,
marutha.

May 17 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
<ma*************@gmail.com> wrote in message
news:11********************@j73g2000cwa.googlegrou ps.com...
Hi,

I'm very new to csharp. I'm learning basics. Is it possible to send
messages to threads at runtime at c sharp? if so please guide me in
doing that.

Thanks is advance,
marutha.


Do you mean similar to the Win32 mthod PostThreadMessage?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
May 17 '06 #2

P: n/a
<ma*************@gmail.com> wrote:
I'm very new to csharp. I'm learning basics. Is it possible to send
messages to threads at runtime at c sharp? if so please guide me in
doing that.


The normal way is to use a producer-consumer queue or shared variables
and Monitor.Wait/Pulse. See half way down
http://www.pobox.com/~skeet/csharp/t...eadlocks.shtml for some
sample code.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 17 '06 #3

P: n/a
Events and event handlers.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

<ma*************@gmail.com> wrote in message
news:11********************@j73g2000cwa.googlegrou ps.com...
Hi,

I'm very new to csharp. I'm learning basics. Is it possible to send
messages to threads at runtime at c sharp? if so please guide me in
doing that.

Thanks is advance,
marutha.

May 17 '06 #4

P: n/a
Hi,

What is what you want to do?

You can always use a Producer-Consumer estrategy.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
<ma*************@gmail.com> wrote in message
news:11********************@j73g2000cwa.googlegrou ps.com...
Hi,

I'm very new to csharp. I'm learning basics. Is it possible to send
messages to threads at runtime at c sharp? if so please guide me in
doing that.

Thanks is advance,
marutha.

May 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.