Threading in C# (Ultra Basic).


Baby steps

I come from a Ruby background and threading there was as easy as:

# Ruby Code { puts "hello from thread" }

I am pleased to tell you that in C#, it is easy as well.

// C# code
new Thread( () = Console.WriteLine("hello from thread") ).Start()

The .Start() at the end is a little annoying as it is redundant. But I am sure I will find out why it is there in the near future.

Congratulations, you have started a thread and wrote to the console.

This website helped me out a lot. Thank you random person on internet.

Albahari on Threading

Lastly, this song is awesome


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s