What is thread & process?

Answer Posted / md moinuddin

Each process provides the resources needed to execute a
program. A process has a virtual address space, executable
code, open handles to system objects, a security context, a
unique process identifier, environment variables, a
priority class, minimum and maximum working set sizes, and
at least one thread of execution. Each process is started
with a single thread, often called the primary thread, but
can create additional threads from any of its threads.

A thread is the entity within a process that can be
scheduled for execution. All threads of a process share its
virtual address space and system resources. In addition,
each thread maintains exception handlers, a scheduling
priority, thread local storage, a unique thread identifier,
and a set of structures the system will use to save the
thread context until it is scheduled. The thread context
includes the thread's set of machine registers, the kernel
stack, a thread environment block, and a user stack in the
address space of the thread's process. Threads can also
have their own security context, which can be used for
impersonating clients.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want recent paper pattern for HP company?

1897


What is the difference between Struts and JSF? Pls list some most suitable differences.

2929


what is functioning of DIalodDataXchange ..?

1274


plzz tell me what we can do and dont in tally ERP & sap business one?

1977


List out the basic features of MFC.

14034






How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

809


What is mfc class hierarchy?

703


how to repaint when working with horizontal scroll bar

1624


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

1892


How do I create a dialog box in mfc?

696


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

3454


what message is sent to an application when the user presses the primary button?

1470


Do you have an idea about MFC?

1020


What does mfc stand for?

1080