`
yzhm
  • 浏览: 7170 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

Processes and Threads

    博客分类:
  • J2EE
阅读更多

Processes
A process has a self-contained excution enviroment. A process generally has a complete, private set of basic run-time resource, in particular, each process has its own memory space.
Most implements of the java virtual machine run as a single process. A java application can create additional processes using a ProcessBuilder object.

Threads
Theads are sometime called lightweight processes. Both processes and threads provide an execution enviroment, but create a new thread require fewer resource than creating a new process.
Threads exist within a process - every process has at least one. Threads share the process's resource, including memory and open files. This makes for efficient, but potentially problematic, communication.
Multithreaded execution is an essential feture of the java platform.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics