Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
A Cautionary Tale: Threads and Forks
Jason R Clark
October 22, 2013
0
37
A Cautionary Tale: Threads and Forks
Jason R Clark
October 22, 2013
Tweet
Share
More Decks by Jason R Clark
See All by Jason R Clark
Failing Well
jasonrclark
0
130
Rack 'em, Stack 'em, Web Apps
jasonrclark
2
290
Programming in the Small: Kids, Chickens, and Ruby
jasonrclark
1
110
Real World Docker for the Rubyist
jasonrclark
2
330
GDB: A Gentle Intro
jasonrclark
1
370
Peeking Into Ruby
jasonrclark
0
96
Testing The Multiverse - OS Bridge 2015
jasonrclark
0
110
Testing the Multiverse
jasonrclark
0
160
Spelunking in Ruby
jasonrclark
2
460
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
25
1.4k
Documentation Writing (for coders)
carmenhchung
48
2.5k
The Language of Interfaces
destraynor
148
20k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.3k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.2k
Building Your Own Lightsaber
phodgson
94
4.6k
Keith and Marios Guide to Fast Websites
keithpitt
404
21k
Optimizing for Happiness
mojombo
365
63k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
498
130k
Build The Right Thing And Hit Your Dates
maggiecrowley
19
1.1k
Making Projects Easy
brettharned
98
4.3k
Practical Orchestrator
shlominoach
178
8.6k
Transcript
A Cautionary Tale Jason Clark @jasonrclark Ruby Agent Engineer 1
Tuesday, October 22, 13
2 Forks http://www.flickr.com/photos/lytfyre/4034068712/ Tuesday, October 22, 13
3 Threads http://www.flickr.com/photos/avlxyz/5161263146/ Tuesday, October 22, 13
A Simple Process 4 Tuesday, October 22, 13
A Simple Process 5 fork() Tuesday, October 22, 13
fork() A Simple Process 6 Tuesday, October 22, 13
7 Locks http://www.flickr.com/photos/49680546@N07/4574985367/ Tuesday, October 22, 13
Lock It Up 8 fork() @lock Tuesday, October 22, 13
@loick fork() Lock It Up 9 @lock Tuesday, October 22,
13
Avoiding Deadlocks 10 https://github.com/resque/resque/issues/1101 Tuesday, October 22, 13
If... 11 Tuesday, October 22, 13
If You Can Avoid It... 12 Tuesday, October 22, 13
13 Tuesday, October 22, 13