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
Is bash a shell script?
What is shell and terminal?
How to calculate the number of passed arguments?
What is the use of .sh file?
What is subshell?
What is a shell environment?
What are the two files of crontab command?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
What is the difference between break and continue commands?
What is scripting used for?
What is a boot block?
Explain about return code?
What is a shell script in windows?
How do I save a powershell script?
What is the default ubuntu terminal?