TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
rohit kumar
NA
6
1.7k
problem in checking status process PID in c.
Dec 28 2017 10:17 AM
I wrote a small program in C.
But when i compile it on my pc it goes to " loop" and my pc crashed.
program :
#include <stdlib.h>
int main()
{
label:;
system("start sleep.exe ");
goto label;
return 0;
}
Solution required:
1) Check sleep.exe is runing or not in process task list of win7.
2)if not running then run sleep.exe.
3)else goto label: for further checking.
program may be something like this:
#include <stdlib.h>
int main()
{
label:;
IF process sleep.exe is runing then{goto label:}
system("start sleep.exe ");
goto label;
return 0;
}
Reply
Answers (
2
)
extracting same result using selenium
VBA for microstation