multithreading - What are the "things to know" when diving into multi-threaded programming in C++ -


I am currently working on a wireless networking application in C ++ and it is coming to a point where I I want to understand multi-threading, rather than a separate piece of multi-thread software, all of them, rather than the different processes, but I have not yet practiced dive.

When writing a multi-threaded code in C ++, every programmer Or should you know?

I will focus on designing that thing as much as possible, so you have Threads have the least amount of things shared. If you make sure that you do not have statics and other resources shared between Thayer (the others you share, then you will design it with procedures instead of threads) then you will be fine.

So yes, you need concepts like locks, sackphars, etc., the best way to deal with this is to try to avoid them.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -