Questions tagged [process-control]

Process Control defines the boundaries within which a team works to deliver a quality product at an optimal pace.

Process Control is traditionally an engineering discipline that deals with keeping the output of a specific process within the optimal limits.

In Software as well, process control is applied in a similar sense to make sure that all the energies are applied towards achieving the same goal or successful delivery of quality software. Process Control, in software, would mean that we define the boundaries within which we work and the results are acceptable. The requirement specifications, design documents, number of test cases, UAT, Code Reviews all come under process control.

43 questions
46
votes
4 answers

How to cancel shutdown on Linux?

I'm familiar with and use shutdown in Linux, and typically just do > shutdown -h now But is there a way to stop shutdown from happening, say if I aim to shutdown 10 minutes from now and then in 5 minutes' time I discover I really don't want to shut…
David
  • 17,673
  • 10
  • 68
  • 97
15
votes
5 answers

PHP Daemon/worker environment

Problem: I want to implement several php-worker processes who are listening on a MQ-server queue for asynchronous jobs. The problem now is that simply running this processes as daemons on a server doesn't really give me any level of control over the…
Sebastian
  • 272
  • 3
  • 12
13
votes
4 answers

PHP: What does pcntl_fork() really do?

PHP's pcntl_fork function is supposed to fork a process just as the standard fork function in C. But I was wondering if this function really forks the process or if it emulates that behavior in a different way. If it really forks the process then…
GetFree
  • 40,278
  • 18
  • 77
  • 104
10
votes
2 answers

Using Unix Process Control Methods in Ruby

Ryan Tomayko touched off quite a fire storm with this post about using Unix process control commands. We should be doing more of this. A lot more of this. I'm talking about fork(2), execve(2), pipe(2), socketpair(2), select(2), kill(2),…
John F. Miller
  • 26,961
  • 10
  • 71
  • 121
9
votes
3 answers

Start and stop elasticsearch nodes in windows

I am trying to start elasticsearch as a process and stop it without closing the command prompt. For creating a new process, I am using: C:\Users\User1\Desktop\Work\ElasticSearch\elasticsearch-1.3.1\bin>start /B…
Romonov
  • 8,145
  • 14
  • 43
  • 55
8
votes
4 answers

Kill background php script (shared hosting)

I created a script that runs in the background using the ignore_user_abort() function. However, I was foolish enough not to insert any sort of code to make the script stop and now it is sending e-mails every 30 seconds... Is there any way to stop…
user793300
  • 81
  • 1
  • 2
7
votes
4 answers

Storing and retrieving process control block

When a process is in execution, the contents of the PCB (which is in kernel memory space?) are loaded onto the CPU registers, and status registers, kernel stack pointers, user stack pointers, etc. When there is a context switch to another process,…
6
votes
2 answers

Missing Exception in Boost Process

I want to use Boost Process eventhough it has not been release yet. I did svn co svn://svn.boost.org/svn/boost/sandbox/process/ boost-process added boost-process to include path (-I) and #included but compilation complains about…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
5
votes
1 answer

Process control block in Linux

How to extract PCB in linux? or Is there any kernel module available to read it?
vatsal shah
  • 51
  • 1
  • 2
5
votes
6 answers

Sleep in a while loop gets its own pid

I have a bash script that does some parallel processing in a loop. I don't want the parallel process to spike the CPU, so I use a sleep command. Here's a simplified version. (while true;do sleep 99999;done)& So I execute the above line from a…
User1
  • 39,458
  • 69
  • 187
  • 265
3
votes
1 answer

Run sampling process for certain amount of time and return value in Java

I have a Java method that does sampling. That is, it does something like this: TIME = 60 /* seconds */ startTime = now(); count = 0; while (now() - startTime < TIME) { sample = createRandomSample(); if (satisfiesSomeConditions(sample)) { …
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
2
votes
1 answer

Is there a java analog to supervisord

I am writing a distributed system in which jobs (processes) will be run on multiple nodes (LINUX machines). I want to be able to launch job on these machines, terminate a job (kill), monitor what is running on each machine. I am looking for a…
2
votes
1 answer

ruby creating processes and reading output

I want to create multiple processes (each with cmd + arguments). I need the pid of the created process so I can kill it if needed. I also want to be able to read its output (line-by-line) in a non-blocking way (otherwise I have to create threads…
Karoly Horvath
  • 94,607
  • 11
  • 117
  • 176
2
votes
2 answers

What are the side-effects of enabling PROCESS CONTROL (PCNTL) in PHP on web server environment?

below is a quotation from http://www.php.net/manual/en/intro.pcntl.php Process Control should not be enabled within a web server environment and unexpected results may happen if any Process Control functions are used within a web server…
Lina
  • 2,090
  • 4
  • 20
  • 23
2
votes
1 answer

Job server - remove Gearman worker function from queue

We're using Gearman along with Supervisord to queue and run jobs on our server. One issue I cannot seem to be able to solve is completley removing Gearman workers from the job queue. I've tried removing both client/worker source files as well as…
dcd0181
  • 1,493
  • 4
  • 29
  • 52
1
2 3