Question
What is difference between thread and process?

Answers

Differences between threads and processes are:-
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 do not affect child processes.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Can a constructor have different name than a class name in java?
  • Q Mention what are the primary models for determining pay-per-click ?
  • Q Define the Antiseptic
  • Q Why union transformation is an active transformation?
  • Q What was Gary Glitter's earlier stage name in the 1960s?
  • Q Late last summer, despite ample water, the leaves on several limbs of my japanese maple suddenly began wilting. Can i save the tree?
  • Q What is aliasing?
  • Q The Government of India has approved the amendment of the Payment of Bonus Act, increasing the bonus ceiling of Rs 3500 per month to Rs. Per _____ month?
  • Q explain the Borland/Inprise C++ and C++ builder
  • Q "The curfew tolls the knell of parting day." which poems start
  • Q The function code at presently active is determined by what variable?