K
K
kk862011-09-14 11:43:23
Programming
kk86, 2011-09-14 11:43:23

Tasks for multi-threaded programming in .NET?

Hello!
In my last job interview, I found out that I have very big problems with multi-threaded programming. Somehow it so happened that on all projects I managed to write single-threaded code that successfully coped with the task in an acceptable time. In general, "multi-threading" was not required.
Please tell me the source of tasks for multi-threaded programming. It is important that they are “sharpened” for .NET. And then I found quite good tasks here , but it seemed to me that some in .NET would not be entirely plausible and would be solved too crookedly (I admit that I am deeply mistaken).
And another side question. I was advised to implement a game server to master multithreading. Is this a good idea?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
korvindest, 2011-09-14
@kk86

The game server is too cool, try to start by implementing a chat with the server, the client and one common room, without any privates.
This task will allow you to face many of the problems of multithreading, but at the same time it is clear, understandable and simple.
In addition, I would recommend reading various articles on the topic of thread-safe creation of objects (mainly singleton), methods for dealing with deadlock, and about various methods of thread synchronization (method/block synchronization, simaphore).
I myself write more in Java, but I think that there should be no discrepancies here.

A
AigizK, 2011-09-17
@AigizK

Here is a good article on multithreading in .NET
www.rsdn.ru/article/dotnet/CSThreading1.xml them to start. As for tasks, it is not necessary to write a client-server application. You can use multithreading in the same tasks that you solved in one thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question