A 2D gravity simulation using X display and pthreads to speed up calculations on multi-core systems.