Link to home
Start Free TrialLog in
Avatar of axnst2
axnst2Flag for United States of America

asked on

Working with Threads in C# (Visual Studio 2005)

Hi Experts,

        I just started working with VisualStudio 2005 (literally today).  I am writting a comm app. to run as a windows service app.  I have created a windows service app no problem.  Now I need to learn how to work with threads in VS 2005.  I am writting my code in C#.  I have worked with threads in VS 6.0 so I am not terribly new to the concept.  However, I'm sure it's not exactly the same in VS 2005.  Therefore, I am looking for good tutorials/book(s) on Multithreading (including semaphores/CriticalSections.)

Thanks,
axnst2
ASKER CERTIFIED SOLUTION
Avatar of gbzhhu
gbzhhu
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of axnst2

ASKER

Is it just me or did they make MultiThreading 10 times harder then it used to be?

WOW...
Avatar of axnst2

ASKER

Can someone explain me what these "delegates" are?

Every tutorial keeps talking about them like it's a common expression.  I've never heared of it?  I can tell it has something to do with multithreading, but not sure what.

Thanks,
axnst2
Delegates are similar to C++ function pointers.  They are used for callbacks, events and threading.  In C# delegates are very common so I would spend a bit of time familiarising with them.

Have a read

http://www.devsource.ziffdavis.com/article2/0,1759,1546085,00.asp
Avatar of pgloor
pgloor

Take a look at:

http://www.yoda.arachsys.com/csharp/threads/

What are "critical sections"? I guess Monitor.Enter/Exit (and the lock statement) are related to this.

Peter
Avatar of axnst2

ASKER

Thanks Experts!