Concurrency In Java
In java, every process(or application) has at least one thread, the main thread (for UI applications, this is called the JavaFX application thread )
Every java application run as a single process, and each process can have multiple threads Every process has a heap, and every [[Threads]] has a #thread_stack
Concurrency refers to an application doing more than one thing at a time. It also means that one task doesn't have to complete before another can start
In addition to the process's memory, or heap, each thread has what's called a thread stack
Thread Stack is the memory that only that thread can access
Every process has a heap and every thread has a thread stack
Learn [[Threads in JAVA]]
Last updated