C Board  

Go Back   C Board > General Programming Boards > C# Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-14-2008, 06:25 AM   #1
Registered User
 
Join Date: May 2006
Posts: 1,579
thread safety in Windows Service design

Hello everyone,


For Windows Service, for example class Service1 is the main class of my service application, which derives from ServiceBase. I am wondering whether it is possible that two concurrent access to the following 3 cases?

1. the constructor of Service1;
2. OnStart method of Service1;
3. OnStop method of Service.

If yes, I need some synchronizaton control in them. If yes, in what situation the three methods will be called concurrently? We are able to start/stop the same service with different instances (processes) at the same time?


thanks in advance,
George
George2 is offline  
Closed Thread

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows service status checking George2 C# Programming 1 06-01-2008 08:19 AM
How to Interact w/ my C# Windows Service? Boomba C# Programming 0 12-27-2007 04:03 PM
global variables and thread safety laertius C Programming 11 07-18-2006 10:43 AM
Thread programming in windows platform geajith Windows Programming 3 01-06-2006 04:04 AM
Simple thread object model (my first post) Codeplug Windows Programming 4 12-12-2004 11:34 PM


All times are GMT -6. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22