what is the differnce between process and thread ?



what is the differnce between process and thread ?..

Answer / santosh kumar

1.Threads share the address space of the process that created it; processes have their own address.

2.Threads have direct access to the data segment of its process; processes have their own copy of the data segment of the parent process.

3.Threads can directly communicate with other threads of its process; processes must use interprocess communication to communicate with sibling processes.

4.Threads have almost no overhead; processes have considerable overhead.

5.New threads are easily created; new processes require duplication of the parent process.

6.Threads can exercise considerable control over threads of the same process; processes can only exercise control over child processes.

7.Changes to the main thread (cancellation, priority change, etc.) may affect the behavior of the other threads of the process; changes to the parent process does not affect child processes.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB Administration Interview Questions

which background process invoke at the time of upgradation tell me???

0 Answers   iGate,


I have A,B,C servers.i want to 3 servers jobs move to D server(target server)..how? note: i said that take the backup of msdb and restore to the target server..he said while restoring jobs replaced. what is the solution

0 Answers  


I want to reuse a piece of code inside a stored procedure. This piece of code need to be invoked multiple times inside the procedure based on some different conditions. How to achieve this?

1 Answers  


How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up?

0 Answers  


Oracle 11g new features?

2 Answers  






How do you add a data file to a tablespace?

3 Answers  


When setting replication, can you have distributor on sql server 2005, publisher on sql server 2008? : sql server DBA

0 Answers  


Hot backup procedure?

2 Answers  


When creating a user, what permissions must you grant to allow them to connect to the database?

3 Answers  


How do you resize a data file?

2 Answers  


Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?

0 Answers  


how to copy(migrate) the database one server to another server without using expdp/impdp how it is possible.

4 Answers   DELL, TCS,


Categories