From the course: Java EE: Concurrency and Multithreading

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Process vs. thread

Process vs. thread

From the course: Java EE: Concurrency and Multithreading

Start my 1-month free trial

Process vs. thread

- [Instructor] Now, before we even get into the Standard Edition APIs and then start looking at the demos and we move onto Enterprise Edition concurrency, let's understand a few fundamental concepts. We have known them for a while, but let's revise them as a part of this course. What is a process and what is a thread? A process is a running instance of an application or a program. For example, on my machine, I may have Microsoft Word, Microsoft Excel, NetBeans IDE, and then MySQL server, Google Chrome browser and so many programs installed, but when I launch each one of them for my use, then I'm trying to run an instance of that program, and that is a process. A process is always going to be in its self-contained execution environment and it will require its own resources and memory space to operate effectively to provide multitasking on your machine. Every process generally starts off with a single thread and then many threads can be created from it. Every process will have a unique…

Contents