custom service and application - resource lock ?
-
Hi all We have a situation with our custom TSP and an application . The TSP is a Telephony service provider which provides service to MS dialer . The issue is when the PC is restarted svchost.exe (which is active due to starting of TSP )consumes 50% CPU and another application X which commonly shares registry entries with TSP take long time . After 5 to 10 minutes the CPU load comes down and the application starts . The issues seems to be , as mentioned above , with the concurrent access of common resources (registry etc) by the TSP + application X . The worst case scenario is : Application X , as its unable to access registry , forgets the old configuration and a configuration application is started - which calls for trouble as a technician visit to site is mandatory in most cases . The point is : Application X is always part of Start menu and the TSP is started by service host as a service. I am searching for ideas to unblock this situation . Whats the best way to make svchost.exe and Application X not to fight for recources at the same time ? 1. Is its advisible to mutex lock the code surrounding the registry access ? (will it solve or worsen the situation ..!?) 2. Is there anyway we can make application X to be started only after starting of all services and other applications ? ie is there any way to prioritize the starting order of processes? thanks
redindian
-
Hi all We have a situation with our custom TSP and an application . The TSP is a Telephony service provider which provides service to MS dialer . The issue is when the PC is restarted svchost.exe (which is active due to starting of TSP )consumes 50% CPU and another application X which commonly shares registry entries with TSP take long time . After 5 to 10 minutes the CPU load comes down and the application starts . The issues seems to be , as mentioned above , with the concurrent access of common resources (registry etc) by the TSP + application X . The worst case scenario is : Application X , as its unable to access registry , forgets the old configuration and a configuration application is started - which calls for trouble as a technician visit to site is mandatory in most cases . The point is : Application X is always part of Start menu and the TSP is started by service host as a service. I am searching for ideas to unblock this situation . Whats the best way to make svchost.exe and Application X not to fight for recources at the same time ? 1. Is its advisible to mutex lock the code surrounding the registry access ? (will it solve or worsen the situation ..!?) 2. Is there anyway we can make application X to be started only after starting of all services and other applications ? ie is there any way to prioritize the starting order of processes? thanks
redindian