Just check status process in c

Then you want to use the waitpid function with the WNOHANG option: #include <sys/types.h> #include <sys/wait.h> int status; pid_t return_pid = waitpid(process_id, &status, WNOHANG); /* WNOHANG def’d in wait.h */ if (return_pid == -1) { /* error */ } else if (return_pid == 0) { /* child is still running */ } else if (return_pid … Read more

Wait one second in running program

Is it pausing, but you don’t see your red color appear in the cell? Try this: dataGridView1.Rows[x1].Cells[y1].Style.BackColor = System.Drawing.Color.Red; dataGridView1.Refresh(); System.Threading.Thread.Sleep(1000);

Sending one AJAX request at a time from a loop

You want something like this. I haven’t tested it, but hopefully you should get the idea. var dates = []; //<– Contains a list of dates for the coming week var baseUrl = “http://www.someserver.com”; var storedChannels = [1,2,3,4,5,6,7,8,9,10,45,23,56,34,23,67,23,567,234,67,345,465,67,34]; function ProcessNext(ch, d) { if (d < 7) { d++; } else { d=0; if (ch < … Read more