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

what functionality does oracle provide to secure sensitive information?

554


I got an error SQL1042C. An unexpected system error occurred. Explanation: A system error occurred. One possible reason for this error is that the database manager is not installed correctly or the environment is not set up correctly. On OS/2, while trying to start the database manager, a very common reason for this error is a corrupted NET.ACC file. The command cannot be processed. The tables and views would not be opened. What is the way to open the dataase? pls help me

3803


What is the default fill factor value? : sql server DBA

574


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?

2031


how can you process messages in order asynchronously?

557






what do you understand by flashback feature of oracle?

560


Why would you call update statistics? : sql server DBA

579


How do you open a cluster administrator? : sql server DBA

581


how can you record information about current session?

495


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

3942


Can you redefine a table online?

669


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracle's. What database recovery options are available? Database is in archive log mode.

1748


What is the difference between clustered and non-clustered index? : sql server DBA

545


how can you schedule a job in database?

597


what are the types of connection load-balancing?

564