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


Please Help Members By Posting Answers For Below Questions

What does $0 mean in shell script?

559


What is a shell script? Can you name some of its advantages?

525


What is the syntax of while loop in shell scripting?

569


Is bash an operating system?

546


What command needs to be used to take the backup?

528






What is the equivalent of a file shortcut that we have a window on a linux system?

606


Is shell scripting difficult?

559


What is meant by dos operating system?

574


What is difference between shell and bash scripting?

547


What will happen to my current process when I execute a command using exec?

536


is this growing field and what is average package in this?

1872


What is a boot block?

583


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.

1855


What does it mean to debug a script?

573


What is path variable bash?

573