С#. Domains. Processes. Threads

Domain – container for processes. Domain include processes. It is .NET technology – to make work more safety, also for multiPlatforms, more efficient with resources consumption.

Process – running program, container for threads. It has PID.

Thread – way of execution. There is always main thread. Possible many threads. If something resoursable – put in additional thread, main thread will work correctly. Process includes threads. Principle of thread is to give quantum of time to each thread in cycle and remember its state to next quantum of time – it is like a wheel in casino.

Thread has local storage and call stack!

Processes and .NET

System.Diagnostics has number of classes for interaction.

System.Diagnostics.Process

System.Diagnostics.ProcessModule

System.Diagnostics.ProcessModuleCollection

System.Diagnostics.ProcessStartInfo

System.Diagnostics.ProcessThread

System.Diagnostics.ProcessThreadCollection

Processes and thread examples

 

 

This entry was posted in C#. Bookmark the permalink.