Threads exist within the same process; they can share memory and take less time to perform a "context switch;" they are part of the same program running in parallel processing units. Threads each have their own dedicated memory, and a shared memory area. Processes are entirely partitioned units of executing code. They cannot directly share memory with each other without assistance from the operating system, and are protected from each other by the operating system (in most modern operating systems, that is). They require more time to perform a context switch, as the entire task must be swapped out of the CPU instead of just the thread stack.
No, a thread can't create aprocess, because the environment of the thread is a part of a process which created this thread.
synchornisation is the process where more than one thread can be accessed by accesssing the shared object of the class.By syncornisation we can have the communication between threads.if one thread works then another thread automatically stops
A thread is basically a lightweight process.
Processes do not execute, it is the threads within a process that actually execute. All processes have at least one thread of execution, the main thread. If the main thread falls from scope, the process ends, taking all threads with it. This can lead to undefined behaviour if the threads are not terminated gracefully from within the main thread before it falls from scope.
A virus runs in a thread, as do all programs. The difference between a generic thread and a virus is that the thread may not be harmful, while the virus generally is.
A thread is a sub process in other words one process can contain multiple threads.
The same metaphor: the difference of a person (thread) and a family (process) A process has at least 1 thread and may have many threads, while 1 thread must live within a process
No.
Basically no difference, except that process can use many threads; thread can use only one.
No. A thread is a part of a process, but a process can not be part of a thread. Processes are always "at the top."
No, a thread can't create aprocess, because the environment of the thread is a part of a process which created this thread.
Execution context within a process is called Thread. Threads run, process does not. Every process starts with one thread.
The English bottom bracket thread on a bicycle is typically right-hand threaded in relation to the frame.
Process based is much time as comparison as thread based. as well as Thread based application is cost effective. Process based application has its own address space so it take more cost. Alok Gupta. India.
yes, because if process is terminated then its related thread has no work. After completion of process the kernel generates a thread that will cancelled the thread in order to save the time and memory of CPU.
A thread is basically a lightweight process.
synchornisation is the process where more than one thread can be accessed by accesssing the shared object of the class.By syncornisation we can have the communication between threads.if one thread works then another thread automatically stops