processes

Winforms app like google chrome with multiple processes

Is there anyway to use C# to build a container app where each tab is actually its own process like with Google chrome. ...

Tabs in their own process with C# and WinForms

Both IE8 and Google Chrome browser have separate processes for each tab that is opened. For example, you launch IE8 and open Yahoo and Google in their own tabs, you end up with 3 processes running on your system: IE8 itself process [master process] Google tab process Yahoo tab process I'm toying with the idea of a similar thing i...

how to release resources of a process

I am invoking an external process by using System.Diagonistics.Process and passing two filenames as parameters. Now some time this process terminates due to exceptions and it seems that files handle are not being released by the process. How can i release the resources occupied by the process. ...

What happens when an Apache worker starts its own worker thread or process?

If I'm using Apache with a pool of worker processes, and one of those launches its own long-running process, what happens to that worker? Will Apache kill it eventually, killing the child process? Will that worker be permanently unavailable, but keep running? How does it differ if it starts a thread instead of a process? How does it ...

get command output in pipe, C for Linux

I need to run a Linux CLI command and get its stdout output from C. I can use pipe() to create a pipe, then fork/exec, redirecting child's stdout descriptor into the pipe before calling exec(), and reading from the pipe in parent. Plus I'll need to wait on the child. Is there a simple call to do fork + redirect + exec + wait, like syst...

What do you use checklists for?

Apart from the archetypical code-review checklist, what are some good places to use checklists in software engineering? ...

How to detect the current sharepoint pages from the client machine?

On the client machine I need to be able to somehow detect which sites the current user are looking at right now. I know the base URL of the sharepoint app, say sharepoint.thecompany.net but how the hack do I get the last requested url from the server? I have hit a dead stop when trying to iterate the current processes and the casting the...

Setting a thread priority in a service

Hello all, In my service I have a few threads that each call the CreateProcess() function to launch an external application. I would like to adjust thread (or process) priorities to normal or lower, depending on some other factors. The problem is that SetThreadPriority() function fails with an error 6 (invalid handle?). I'm passing in a...

PHP fork without having child inherit the parent's file descriptors?

I'm trying to run a shell command using the backtick operators, but the fact that the child process inherits php's open file descriptors is problematic. Is there a way to keep this from happening? I'm running PHP 5.1.2 ...

What is the HOME method?

A client asked me if I knew anything about the HOME development method. I, together with wikipedia and acronymfinder, drew a complete blank. Has anyone here heard about a development method called HOME? ...

How do I synchronize two processes?

I have a single HW interface I want to use from two applications (processes) on the same workstation. The HW requires a single initialization call then either app uses the same function (in the same library) to do many transactions with the HW. So each app should act like this: main() // I don't know if another app already init'e...

Single-threading two processes

I have two C++ processes (A and B), executing under Windows, where one launches the other. I would like to effectively single-thread their execution. For example: Start process A A creates B A suspends B executes some fixed set of operations B suspends and A is resumed A executes some fixed set of operations A suspends and B is resumed...

pConsole.StartInfo.RedirectStandardOutput and pConsole.Exited event (c#)

Hi, I have a GUI application that executes (in a new process) "console" applications and parse the output. To redirect the Output i set the pConsole.StartInfo.RedirectStandardOutput to true. I also subscribes to the event pConsole.Exited. The problem I see is that I have to use Thread.Sleep() in the Exited event handler to get the last...

How can I cause a child process to exit when the parent does?

I am launching a child process with ProcessBuilder, and need the child process to exit if the parent process does. Under normal circumstances, my code is stopping the child properly. However, if I cause the OS to kill the parent, the child will continue running. Is there any way to "tie" the child process to the parent, such that it'l...

How do you get the UserName of the owner of a process?

I'm trying to get a list of processes currently owned by the current user (Environment.UserName). Unfortunately, the Process class doesn't have any way of getting the UserName of the user owning a process. How do you get the UserName of the user which is the owner of a process using the Process class so I can compare it to Environment.U...

Inside a batch file, how can I tell whether a process is running?

I'd like to write a batch file that checks to see if a process is running, and takes one action if it is, and another action if it isn't. I know I can use tasklist to list all running processes, but is there a simpler way to directly check on a specific process? It seems like this should work, but it doesn't: tasklist /fi "imagename e...

How can I kill a whole process tree with Perl?

What's the best way to kill a process and all its child processes from a Perl script? It should run at least under Linux and Solaris, and not require installation of any additional packages. My guess would be to get a list of all processes and their parents by parsing files in /proc or by parsing the output of ps (neither of which seems...

Is process forking in PHP / Apache a good idea?

I'm writing a simple application in PHP which needs to occasionally carry out a fairly intensive set of MySQL updates. I don't particularly want this to cause a delay for the user, so I'm wondering about using pcntl_fork(). I'm not sure how this really works though: will the child process continue running after the parent process finis...

How does one deal with backdoor code changes?

Scenario I admit (somewhat shamefully) that I have not only witnessed this particular practise, but I have also committed it myself. My name is Jeff and I have gamed a quality process to get my way. The scenario I am referring to is this. Engineer A wants to do something a certain way but Engineer B has already implemented it. Rather t...

Java: Run a Callable in a separate process

Given an instance x of Callable<T>, how can I run x in a separate process such that I can redirect the standard input and output of the process? For example, is there a way to build a Process from a Callable? Is there a standard Executor that gives control over input and output? [UPDATE] It's not important that the Callable execute in a...