Posts

Showing posts from January, 2019

Performance of the System using Multithreading Processing

Image
Multithreading: All modern operating systems can run multiple programs at the same time. Normally those programs are using some area of the memory, which is allocated to them by the operating system. That way they won't be able to interfere with one another. However, this type of isolation results in certain amount of overhead in terms of processing time. As an alternative we use multithreading concept which is a light weight process that improves the utilization of CPU by implementing group of related threads that belongs to the same process that share code section, data section and other OS resources i.e.Files.  Each thread in the program has  1) Thread ID 2) Program Counter 3) Register Set 4) Stack Let's assume we have a process that has its own code, data and file sections and we break this process task into sub units known as threads i.e. T1, T2 and T3. As a result, each thread contains it's own register stack value and code, on the ot