Nxt-python-threads

From Earlham CS Department
Revision as of 13:26, 24 February 2010 by Charliep (talk | contribs) (New page: === Thread Basics === * Computing device - CPU, RAM, persistant store (two ARM CPUs, etc. in the NXT) * Stored program; Fetch, decode, execute * Execution context - instructions, data, pr...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Thread Basics

  • Computing device - CPU, RAM, persistant store (two ARM CPUs, etc. in the NXT)
  • Stored program; Fetch, decode, execute
  • Execution context - instructions, data, program counter, stack
    • Processes have all 4 (instructions, data, program counter, stack)
    • Threads have PC and stack with shared ins and data
  • Workshop analogy
  • Concurrency and locking

Basics of threads in Python