Definition of Process and Threads.
Process:-
A process is a collection of following.
• Virtual memory space
• Code
• Data
• System resources.
Thread:-
A thread is code that is to be serially executed within a process. A processor executes threads and not process. Below given is the framework of process and threads.
[Process]
• Virtual memory
• Data
[Thread]
• Primary
• Secondary
Attributes of process and threads.
• A win32 application has at least one process.
• A process has at least one thread called primary thread. A process can have multiple threads in addition to primary thread.
• Processes communicate with one another.
• A thread continues to execute until it is killed or being interrupted by a thread with higher priority.
• Each thread shares that process global variables and resources.
• A thread scheduler determines when and how often to execute a thread accordingly to a combination of the process’s priority class attribute and thread’s base priority.
Definition of Process and Threads.
Tuesday, July 28, 2009
Posted by Chirag at Tuesday, July 28, 2009
Labels: data, Process, thread, win32 application
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment