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
What does $0 mean in shell script?
What is a shell script? Can you name some of its advantages?
What is the syntax of while loop in shell scripting?
Is bash an operating system?
What command needs to be used to take the backup?
What is the equivalent of a file shortcut that we have a window on a linux system?
Is shell scripting difficult?
What is meant by dos operating system?
What is difference between shell and bash scripting?
What will happen to my current process when I execute a command using exec?
is this growing field and what is average package in this?
What is a boot block?
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 does it mean to debug a script?
What is path variable bash?