Initially, it’s necessary to analyze a process in order to understand the functioning of a thread. Most of the systems nowadays are based on computers with just one processor that executes many tasks simultaneously. In other words, many processes share CPU usage, taking certain slices of runtime. This capacity is called multitasking.
Theoretically, there is a huge protection in order to a thread doesn’t affect others execution, for example modifying another thread data area. This high level of isolation minimizes unpleasant GPF’s (general protection fault) because system becomes more robust. However, initializing each thread is very costly in terms of memory usage and performance. The messages exchange mechanism among threads is also more complex and slower, if comparing to a single program accessing its own data base.
A solution found was to use threads. A thread can be seen as a sub process of a process which allows sharing of its data area with the program or other threads.
Initially, it’s necessary to analyze a process in order to understand the functioning of a thread. Most of the systems nowadays are based on computers with just one processor that executes many tasks simultaneously. In other words, many processes share CPU usage, taking certain slices of runtime. This capacity is called multitasking.
Theoretically, there is a huge protection in order to a thread doesn’t affect others execution, for example modifying another thread data area. This high level of isolation minimizes unpleasant GPF’s (general protection fault) because system becomes more robust. However, initializing each thread is very costly in terms of memory usage and performance. The messages exchange mechanism among threads is also more complex and slower, if comparing to a single program accessing its own data base.
A solution found was to use threads. A thread can be seen as a sub process of a process which allows sharing of its data area with the program or other threads.
Entries (RSS)