"Describe the difference between a Thread and a Process?"
A process is an instance of an application, which can run n-threads (depending on the OS). A thread being 'smallest sequence of programmed instructions that can be managed independently by an operating system scheduler'. For more detailed information, use the links below or use Google.In terms of .NET namespaces, the processes are inside System.Diagnostics whereas the threading stuff is under System.Threading. I never really got why process is inside the diagnostics namespace, so If you know - place a comment.
A lot has changed in the .NET framework related to threading quite recently. In .NET 4 - the 'task' keyword was introduced and in 4.5 the 'async' and 'await' keywords were added to that. This is of course because processors are getting more and more cores. A nice video for getting up to speed with task/async/await is this one on YouTube:
Links:
- WikiPedia
- ProgrammerInterview.com
No comments:
Post a Comment