![]() |
| | #1 |
| Registered User Join Date: May 2006
Posts: 1,579
| thread safety in Windows Service design 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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |