Skip to content

Instantly share code, notes, and snippets.

@tpunt

tpunt/doc.md Secret

Last active January 13, 2017 14:57
Show Gist options
  • Save tpunt/80fcc3eaa6cb449f55ed2386d84a22a5 to your computer and use it in GitHub Desktop.
Save tpunt/80fcc3eaa6cb449f55ed2386d84a22a5 to your computer and use it in GitHub Desktop.
Parallel Programming Article Series Plan

Parallel Programming Article Series Plan

  • Parallel Programming with pthreads in PHP - The Fundamentals
    • Walk through all of pthreads' classes (Threaded, Thread, Worker, Volatile, and Pool), including mentioning when to use them (context recycling, ...), how to use them, and so on.
    • cover immutability and its counterpart volatility
    • cover synchronization
  • Parallel Programming with pthreads in PHP - The Intermediate
    • doing things the pthreads way
    • Cannot pass in DB connections (not Threaded objects, unsafe to manipulate), should be instantiated within the new thread instead
    • resources unsafe...
    • arrays (explicity defining arrays as Volatile objects upfront)...
    • Use with Composer
    • Static members are thread local (impacts?)
    • Unusable global variables in Threaded classes
    • Threaded::isGarbage (enforced via Collectable) and how pthreads handles the collection of it
    • Explicit array casting
    • Threaded::extend for runtime extending of Threaded)
    • Performance techniques?
  • Parallel Programming with pthreads in PHP - Upgrading from pthreads v2 to v3

Anything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment