a simple introduction to threads and processes