Comunication Between Threads C#

  • Thread starter Thread starter =?ISO-8859-1?Q?Fernando_Andr=E9?=
  • Start date Start date
?

=?ISO-8859-1?Q?Fernando_Andr=E9?=

Sorry I forgot to specify the language I am using the language I'm using
is C# .
Hello,
could anyone give me a help on the best way to transmit the results of a
function in a thread to where she has started from ?
Problem is if i'm not in error that the function launched by the thread
has to be void... So, I can't return anything.
What's the best way to do this ?

I have heard of IPC but don't have mutch knowledge of this but looks
like "you" write the data to a file and then read the file, from the
main process.

Thank You in advance for any help.
Fernando Ribeiro
 
Fernando André said:
Sorry I forgot to specify the language I am using the language I'm using
is C# .
Hello,
could anyone give me a help on the best way to transmit the results of a
function in a thread to where she has started from ?
Problem is if i'm not in error that the function launched by the thread
has to be void... So, I can't return anything.
What's the best way to do this ?

It really depends on the exact situation, but there are various ways of
doing it.

See http://www.pobox.com/~skeet/csharp/multithreading.html
 
Back
Top