What is thread & process?
Answers were Sorted based on User's Feedback
Answer / bizuneh
thread is a lightweight while process is heavyweight
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / moahmed ali
process is execution of program
thread is light weight process
process consists of multiple threads
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / chokri
a thread is a process but process isn't a thread
| Is This Answer Correct ? | 4 Yes | 6 No |
Answer / c.vidhya
Thread will perform multiple task(process) at a
time.process is single phase.
| Is This Answer Correct ? | 14 Yes | 35 No |
is it possible to display a window .without using windowclass
What is the difference between hinsrtance and hprevinstance in WinMain function?
In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
Explain Doc/View architecture
Tell me the different controls in MFC ?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
Does the application have more than one object? If no, then what is the reason?
1) create ToolTip in MFC?
What is model and modeless dialog box ? Give some examples?