Describe the difference between a Thread and a Process?
Answer Posted / nalin jayasuriya
A thread consists of a series of computer instructions...
and usually corresponds to the CPUs execution of a series
of instructions. Threads use the registers and the 'stack'
as its memory (state).
A process contains at least one thread and private memory.
A process is the operating system loads when one executes a
program. When a process contains multiple threads, there is
usually thread synchronization needed.
In Windows programming, the primary thread is what creates
the user-interface controls and it's that thread that is
allowed exclusive privileges to update the user-interface.
In Windows programming, a process receives and sends
messages to the operating system.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
what's the basic's in dot net
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What are the benefits of interface?
What is ambiguity in inheritance?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is the full form of oops?
What is difference between pop and oop?
What is the real time example of encapsulation?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the benefit of oop?
Who invented oop?
How do you achieve polymorphism?
What is stream in oop?
is there any choice in opting subjects like 4 out of 7
What is an example of genetic polymorphism?