Enterprise Application Architecture with .NET Core
by Ganesan Senthilvel, Ovais Mehboob Ahmed Khan, Habib Qureshi
Multithreading exercise
In computing theory, job execution is programmatically spanned using the control named thread. Each thread defines a unique flow of control, but it is controlled by the main program. If you notice that the application is a time-consuming complicated independent process, it is advisable to leverage thread programming for the efficient execution. Independent is the key for parallelism.
In .NET programming, threads are created by extending Thread class of System.Threading library. On invoking Start() method of the extended Thread class, the system kick starts the child thread execution. The life cycle of a thread starts when an object of the System.Threading.Thread class is created and ends when the thread is terminated ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access