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

Is creating "Worker thread" possible in C#?

P: n/a
Hello everyone,
I am a VC++ programmer.
When i develop a multi-threaded application in C++, I prefer to use
worker thread, so that the main thread and worker thread can
communicate using messages.(i will prefer to use PostMessage than
SendMessage API in order to avoid any dead locks )

I prefer to post messages to a thread , instead using call back
functions(passing pointer to another thread's function.)

Is it possible to implement a worker thread in C#?

When i look for C# multi thread samples in the internet, i could find
samples that use call back function(delegates) for the thread
communication. Is it safe to use this method?

Is there any limitation for a delegate method? For example, inside the
delegate method can i access main thread's variables with out any Sync
objects , call another method?
Will delegate methods executed in main thread's context or from
calling thread's context?
Kindly advise me!!
Thank you,

Regards,
Sreedharan
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.