lijie.github.io

喜欢动漫, 游戏, 以及历史的 程序员...


Blog | Archive | Resume | Projects

Notes of Modern Operating Systems

25 May 2015 |

PROCESS

THREAD

Why need thread
  1. In many applications, multipile activities are going on at once.
  2. Threads are light weight than processes.
  3. Threads yield no performance gain when all of them are cpu bound, but when there is substantial computing and also substantial I/O, having threads allow these activites to overlap, thus speeding up the application.
  4. Threads are usefull on systems with multiple cpus, where real parallelism are possible.

The key is “improve performance”.

The classical thread model

POSIX Thread

comments powered by Disqus

Older · View Archive (5)

Go Internals

Container

Newer

Welcome to Jekyll!

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.