Hi all, May I know how to calculate the number of times a character occurs in a string? Are there any function returns the number of times a character occurs in the string? Thanks. Regards, littlecheer
littlecheer
Posts
-
Calculate the number of times a character occurs in a string -
How to Monitor an application which required kill and regenerate if hangMy current monitoring application is written in C++ console. Is it possible to use C++ coding to solve this problem? Thanks a million.
-
How to Monitor an application which required kill and regenerate if hangI see. Based on my understanding, the hang program will reflect very high CPU usage (program in a loop) or usertime and kerneltime unchange (deadlock). Is it possible to trace the particular application's CPU usage? Thanks a lot!
-
How to Monitor an application which required kill and regenerate if hangHi all, Do need a favour here. I would like to monitor an application and kill it if it is hang and regenerate it. However, not able to find relevant code. I'm able to get the kernel and user time by "getprocesstime". But not able to monitor the CPU usage (not able to get idle time) to kill the hang program.Understand that some programmer use "GetSystemTimes" function. But it does not work in my PC. Any suggestion or free code to share? Thanks a lot! -- modified at 23:29 Wednesday 19th September, 2007