what is the differnce between process and thread ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you control the amount of free space in your index pages? : sql server DBA

741


when does an alert gets signaled?

584


How do you trace the traffic hitting a sql server? : sql server DBA

847


what is the use of recording information about current session?

574


when we login sql editor using username and password then it says this error "could not resolve service name" then what can we do at client side.( here thing is tnsnames.ora file is ok till yesterday and worked well, but now it giving error.

1239






Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

1561


How would you extract DDL of a table without using a GUI tool?

2051


What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?

1977


how can you enable flashback feature?

538


what is a user-defined lock?

590


What is the difference between the 2 operating modes of database mirroring? : sql server DBA

518


How would you go about verifying the network name that the local_listener is currently using?

2765


Why does Oracle not permit the use of PCTUSED with indexes?

2332


Why would you call update statistics? : sql server DBA

581


What view(s) do you use to associate a user's SQLPLUS session with his o/s process?

2110