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
Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?
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?
what are the benefits of flashback feature?
Explain about your sql server dba experience? : sql server DBA
What are the recovery models for a database? : sql server DBA
what functionality does oracle provide to secure sensitive information?
how can you create a user-defined lock?
What is the difference between clustered and non-clustered index? : sql server DBA
What are the different types of database compression introduced in sql server 2008? : sql server DBA
. I have my backup RMAN script called "backup_rman.sh". I am on the target database. My catalog username/password is rman/rman. My catalog db is called rman. How would you run this shell script from the o/s such that it would run as a background process?
What is dcl? : sql server DBA
how can you connect from 10g user to 11g user??
If you are given access to a sql server, how do you find if the sql instance is a named instance or a default instance? : sql server DBA
how can you initialize log miner?
How would you go about verifying the network name that the local_listener is currently using?