a simple example of working with threads in c#