Skip to content

Instantly share code, notes, and snippets.

View yackx's full-sized avatar

Youri Ackx yackx

View GitHub Profile
@yackx
yackx / philosophers.groovy
Created February 3, 2014 12:52
Dining Philosophers
#!/usr/bin/env groovy
import static groovyx.gpars.GParsPool.withPool
import groovy.transform.*
import java.util.concurrent.*
@TypeChecked
class Philosopher {