Get all threads

Code to get all threads for a process.