Home Segments Top Top Previous Next

882: Mainline

A running Java program is like a multiprocessing system, because it runs multiple processes that share time. However, a running Java program also is unlike a multiprocessing system, because all the processes share a single address space.

A thread is a process that shares a single address space with other processes. Each thread works independently, sharing time and a single address space with other threads.

Because Java supports threads, Java is said to be multithreaded.