multithreading - Looking for an optimum multithread message queue -


I will run multiple threads within a process. I'm looking for the most efficient way to be able to send messages between threads.

Each thread will buffer a shared memory input message and the other thread will write the appropriate buffer.

Message will be priority I want to manage myself this process.

Without expensive locking or synchronizing, what is the best way to do this? Or is there a well proven library already available? (Delphi, C, or C # is fine).

It's hard to get right without repeating a lot, others have already done it for you Mistake :)

Take a look - there are many well-designed queue templates (and other collections) in the library that you can check and see which is best suited for your purpose is.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -