I want to create threads and assign different function for each thread using c#?
4 Answers
Unless you have good reasons for creating threads, you should prefer using the managed thread pool instead and if .NET 4 is an option, you should take a look at the new Task class.
Comments
Thread T = new Thread(SomeFunction); T.Start(); 1 Comment
kartal
if functions has many arguments like this function : sent_to_server(string init_message, List<string> all_action_messages, byte[] buffer, ASCIIEncoding encoder, NetworkStream clientStream)