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

how can you get actual data change values from previous transactions in oracle?

0 Answers   Oracle,


Explain the use of setting GLOBAL_NAMES equal to TRUE.

1 Answers  


how can you enable flashback feature?

0 Answers   Oracle,


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

0 Answers  


1)how to Take Backup in sql server 2005 from Flash Drive

1 Answers  






How can you enable a trace for a session?

1 Answers  


Why would you call update statistics? : sql server DBA

0 Answers  


How do you find out from the RMAN catalog if a particular archive log has been backed-up?

2 Answers   IBM,


what is the difference between db2start command and start database manager command?

1 Answers  


What authentication modes does sql server support? : sql server DBA

0 Answers  


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

0 Answers  


how do we explain a project in cognos in an interview? please help me. Also how do we perform testing in cognos after creating reports?

0 Answers   HSBC,


Categories