What is the difference between a 'thread' and a 'process'?
Answer Posted / seshadri sethi
A process is a collection of virtual memory space, code,
data, and system resources. A thread is code that is to be
serially executed within a process. A processor executes
threads, not processes, so each application has at least one
process, and a process always has at least one thread of
execution, known as the primary thread. A process can have
multiple threads in addition to the primary thread
Thread – is stream of executable code within process. They
are light weight process. All thread with in a process
share process instruction,code & data segment,open file
descriptor,signal handler,userID and GroupID. Thread has its
own set of register including program counter,stack pointer
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
what is info area how many types?
What language is bash?
What is awk script?
What is shell and shell script?
How do I edit a .sh file?
What is subshell?
How will you copy a file from one machine to other?
What is shell application?
What is option in shell script?
What does $1 mean in bash?
What is a scripting language simple definition?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is a shell script in windows?
shell script for reverse the string