File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "thread" Watch "thread" New topic
Author

thread

c shah
Greenhorn

Joined: May 12, 2011
Posts: 10
what is the different between a thread and a process?
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12924
    
    3

Welcome to the Ranch!

A process is basically a program that's running in memory on a computer. On modern computers, it has its own address space and other resources that the operating system provides for it. A process can have multiple threads, which are paths of code that's executing at the same time. All threads in a process share the address space of the process and can see each other's data.

When you copy & paste that exact question into Google, you'll get a lot of answers with much more detail.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Mykhailo Kozik
Greenhorn

Joined: May 12, 2011
Posts: 16

Agree to google this question.

But in simple words: When you execute java program you run process which can contains many threads.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: thread
 
Similar Threads
Thread & Synchronization
Thread and Object
Tech Word Game
subject
WA #1.....word association