Changes

Jump to: navigation, search

Debugging Parallel Programs in Visual Studio / Team Debug

280 bytes added, 10:45, 21 December 2017
m
Thread
When you stop debugging, if the current process was launched from the debugger it will terminate, however if you attached the debugger to the current process (attach to a process outside of Visual Studios), then the debugger will detach and leave that process running.
==ThreadMultiple Threads==Multiple Threads
A process can have multiple threads.
On a single processor, each thread runs in turn. On the multiple processors, each thread can run at the same time.
difference
Multiple Processes doesn't share resources (memory, code (instructions), and global variable), while multiple Threads share memorydo. They can access the same data easilywith less overhead.
Thread enable the parallel programming but the parallel condition can have risks.
Thread enable the parallel programming but the parallel condition can get risks. *Race Conditions Condition - The results go wrong way by the order of thread work.
*Dead Lock - All thread wait for the other thread forever.
 
*Live Lock - the threads are not blocked but cannot respond each other, and the process is not processed.
= User Interface =
190
edits

Navigation menu