I created an application on an ATMEL device that uses Toolhelp32 to print out the running processes and their threads. This code should be platform independent, because it uses the Toolhelp32 tools and is not dependent on the ATMEL platform in any way.