axnst2
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/CriticalSection s.)
Thanks,
axnst2
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/CriticalSection
Thanks,
axnst2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
Have a read
http://www.devsource.ziffdavis.com/article2/0,1759,1546085,00.asp
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
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
ASKER
Thanks Experts!
ASKER
WOW...