Knowledge
Multithreading
Multi-threading suggest parallel execution of multiple threads, which causes new class of difficultires comparing to single-thread programming.
To know multithreadings means knowing commong pitfalls and methods of coding around them. Usually these includes next terms:
* dead-lock
* live-lock
* synchronization
* race condition
* atomicity
* re-entrancy
* synchronization primitives
* memory barriers
Materials
- Multiple Threads - Win32 apps | Microsoft DocsA thread is the entity within a process that can be scheduled for execution. All threads of a process share its virtual address space and system resources. Each process is started with a single thread, but can create additional threads from any of its threads.
Check yourself
Q:
What is the main principle of dead-lock prevention?
Q:
How many threads can process have on CPU with 12 threads?
Do you know that ...?
- It is possible to start thread in other process
E.g. via CreateRemoteThread Win API
- Windows supports three levels of granularity of executable units
1) Process 2) Thread 3) Fiber
Skillsets



