Hi ,
What is the most efficient and fastest way to send message to a thread(not process) that run in while(1) loop in c#/.net :
1) Using a synchronized queue (such in http://www.geekscafe.net/post/Blocking-Queues-Threade28099s-Communication-in-C.aspx)
2) Running a message loop Using Application.Run of systems winforms in the thread context and before running the application.run subscribe to an event that capture the messsage in the thread context.
3) Using socket or named pipe to send the thread a message.
In Linux I am used to do this with unix domain sockets, what is the equivalent way to do it in windows? share memory file? named pipe? What do you think?
Thanks, Eyal