Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Cautionary Tale: Threads and Forks

92e7389893670a1920a4fd98aec0d246?s=47 Jason R Clark
October 22, 2013
37

A Cautionary Tale: Threads and Forks

92e7389893670a1920a4fd98aec0d246?s=128

Jason R Clark

October 22, 2013
Tweet

Transcript

  1. A Cautionary Tale Jason Clark @jasonrclark Ruby Agent Engineer 1

    Tuesday, October 22, 13
  2. 2 Forks http://www.flickr.com/photos/lytfyre/4034068712/ Tuesday, October 22, 13

  3. 3 Threads http://www.flickr.com/photos/avlxyz/5161263146/ Tuesday, October 22, 13

  4. A Simple Process 4 Tuesday, October 22, 13

  5. A Simple Process 5 fork() Tuesday, October 22, 13

  6. fork() A Simple Process 6 Tuesday, October 22, 13

  7. 7 Locks http://www.flickr.com/photos/49680546@N07/4574985367/ Tuesday, October 22, 13

  8. Lock It Up 8 fork() @lock Tuesday, October 22, 13

  9. @loick fork() Lock It Up 9 @lock Tuesday, October 22,

    13
  10. Avoiding Deadlocks 10 https://github.com/resque/resque/issues/1101 Tuesday, October 22, 13

  11. If... 11 Tuesday, October 22, 13

  12. If You Can Avoid It... 12 Tuesday, October 22, 13

  13. 13 Tuesday, October 22, 13