what is the difference between processes and threads
来源:互联网 发布:山西软件行业协会官网 编辑:程序博客网 时间:2024/06/10 15:14
this is the classic interview question,well, in addition ,to begin with it ,let us discuss what is difference for program ,process, thread?
program,it is the certain amount of the static codes ,it does not environment to support it to start to run ,so it does not occupy the memory.
progress, it is the an execution of the program. nowadays , most of the operation systems are the multiple tasks , multiple users systems .the process consists counter ,stack , data and resource. in order to make the multiple tasks run at the same time , a process consists one to many threads ,one thread only resides in one process.
thread is a single execution sequence within a process. threads have their own private stack and share the heap with each other .so it is the thread safe for thread local variables ,it is not thread safe to the global variables .it should synchronize the heap
- what is the difference between processes and threads
- the difference between threads and processes
- What is the difference between LWP and threads?
- What is the difference between user level threads and kernel level threads?
- What is the difference between test, [ and [[ ?
- The differences between processes and threads?
- what is the difference between the setTimeout and setInterval
- What is the difference between DHTML and the DOM?
- What is the difference between the mouseover and mouseenter events?
- What is the difference between AWT and SWT?
- What is the difference between User Control and Custom Control?
- What is the difference between an EXE and a DLL?
- What is the difference between XML and C or C ?
- What is the difference between SMOD and CMOD?
- what is the difference between little-endian and big-endian.
- What is the difference between procedural and nonprocedural language?
- What is the difference between a thread and a process?
- What is the difference between objectForKey and valueForKey?
- C# System.IO命名空间
- 控件属性:
- 性能优化之Java(Android)代码优化
- dfs-hdu-4620-Fruit Ninja Extreme
- POJ 3126 Prime Path
- what is the difference between processes and threads
- XMLHttpRequest 的用法
- 长路漫漫,只想做好。
- 机器学习相关网络资源汇总
- 2013年8月26日
- wikioi p1380 没有上司的舞会
- JNA--JNI终结者
- 将从数据库hbase获取的二进制流转化成文件夹中的图片
- 上海_陈致欣 时间类