Simple Concurrency in Python

2015/05/29

Outline

  • Introduction
  • What is GIL?
    • Thread
    • multiprocessing
  • Implement a scheduler

Introduction

Introduction

What is GIL?

 A mutex that prevents multiple native threads from executing Python bytecodes at once

What is GIL?

Thread Suck!

Implement Scheduler

  • First-Come First-Serve Scheduling, FCFS

  • Priority Scheduling

  • Round-robin

Start Coding!

Simple Concurrency in Python

By chang-ning tsai

Simple Concurrency in Python

  • 292