~/talk

Concurrency and Parallelism From The Ground Up

Talkat PyCon AU 2017 · 2017-08-03..08-08· [concurrency]
slides:none on file

Covers how CPUs, interrupts and OS schedulers create 15–60 ms time slice quanta and why ticks (Windows 15.6 ms, Linux ~4 ms) matter for context switches; shows cooperative vs preemptive multitasking, virtual memory and cache-coherency effects on races; demonstrates how atomic instructions and locks (and their fairness limits) try to fix races; states global interpreter lock prevents concurrent Python bytecode execution and argues IOCP and epoll async I/O scales for thousands of connections while multiprocessing suits CPU-bound work.

AI-written summary · about

  1. 0:00Amber Brown Concurrency and Parallelism From The Ground Up
  2. 0:37Implementing Concurrency & Parallelism From The Ground Up
  3. 2:17'concurrency' is not recognized as an internal or external command, operable program or batch file.
  4. 2:59How do programs run?
  5. 4:531985 (Windows 1.9)
  6. 5:27Cooperative Multitasking
  7. 8:501994 (Windows 95)
  8. 9:26Pre-emptive Multitasking Concurrency through Distrust
  9. 9:58Timeslices & Ticks Distributing time
  10. 11:21Timeslice Tradeoff Expensive & Responsive VS Performant & Laggy
  11. 12:01CPU registers Virtual Memory table Program Counter
  12. 12:45Threads & Processes More than just a choice in gunicorn
  13. 14:422001 (Windows XP)
  14. 14:53Simultaneous Multithreading 1 core, 2 threads
  15. 15:29Symmetric Multiprocessing oh h*ck
  16. 16:11Synchronisation Locks, Semaphores, and Mutexes, oh my!
  17. 18:47Thread Safety "Safe" as in space travel
  18. 20:11Death of the Tick "Tickless" kernels
  19. 20:52Coprocessing GPGPU & Friends
  20. 22:29Cooperative Python Single-threaded Fun
  21. 22:57Kernel-based Networking I/O Completion Ports epoll kqueue
  22. 25:21Decreasing Overhead No inter-thread communication
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.