GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — explore-python/Process-Thread-Coroutine at master · redention/explore-python

Expand file tree

/

Process-Thread-Coroutine

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

Process-Thread-Coroutine

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
coroutine.md
coroutine.md
 
 
process.md
process.md
 
 
thread.md
thread.md
 
 
threadlocal.md
threadlocal.md
 
 

README.md

Outline

进程、线程和协程

操作系统的设计,可以归结为三点:

  • 以多进程形式,允许多个任务同时运行;
  • 以多线程形式,允许将单个任务分成多个子任务运行;
  • 提供协调机制,一方面防止进程之间和线程之间产生冲突,另一方面允许进程之间和线程之间共享资源。

本章主要介绍在 Python 中如何进行进程和线程编程等,主要有以下几个方面:

  • 进程
  • 线程
  • ThreadLocal
  • 协程

参考资料

  • 进程和线程 - 廖雪峰的官方网站
  • 进程与线程的一个简单解释 - 阮一峰的网络日志
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.