process

Examples of developer guidelines to bring a new developer up to speed

Here are some good examples of coding guidelines: What should coding guidelines do, and are there any good examples of guidelines? What about more general guidelines? Like the VCS process, communications, etc. I want to write something like this, and it would be nice to get some ideas from what others have come up with after many tr...

Kill the process using its name inside linux (Python)

Hello, this works, but it kills every Python process. pkill python However, I cannot do: pkill myscript.py I have also tried killall, but with no luck either. Do I have to user regular expressions? By the way, I want to do this in a python script with import os. ...

If I have the URL of a torrent, how can I just "launch" it using the Process.Start()?

I found a way to obtain the URL of a torrent file, if I have this in string format, is there a way for me to just launch it whenever a user presses a button in my app? I know I could save the file and then call it up, but I'd rather just open it. Is this possible? ...

C# - WCF - inter-process communication

What is the best WCF binding to use for inter-process communication? I have used WCF over local networks and it is amazing, and I'd like to use it for inter-process communication as well. I do not want to expose the communication over the network, however. ...

How do I exec() a process in the background in C?

I've done a fork and exec() on a process, but I'd like to run it in the background. How can I do this? I can just avoid calling waitpid on it, but then the process sits there for ever, waiting to return it's status to the parent. Is there some other way to do this? ...

How to check if a process with a pid X is a zombie?

I got the PID of a process and I need to check if it is a zombie using POSIX system calls in C. How should I do that? The problem I'm having is that I have a process and it forks into many children, the children all do execs and sometimes I want to do the exec in background so I can't really wait() the children that go in background. I ...

how could i know the version of an another application using c#

hello, i need to write a program in c# to collect information about processes running on my computer. I successfuly get the processes's names and ID using this code: ... Process[] processlist; ... foreach (Process theprocess in processlist) { Console.WriteLine(theprocess.ProcessName + ...) ...

Un-killable java program

I have developed an application in java. I need that my java program would not terminated any process explorer/task manager. ...

Writing Standard Input and waiting for Standard Output

Hi, I'm trying to create a Thread that keeps netsh windows command-line tool open so I can execute netsh commands without open it every single time. The thing is, once I've created the Thread, just the first command call works... the subsequent calls seems to have no effect. Here is my code: public class NetshThread implements Runnabl...

How to Run program one Process and some name only?

i create some project but when start App. How to Run this App one Process only and name much "test.exe" name only? when Lunch APP ? C# 2.0 ...

Java ProcessBuilder: external process hangs

I'm using Java's ProcessBuilder class to run an external process. The process should not terminate before the Java program does; it must stay alive in command/response mode. I know that the process streams may easily 'jam' if neglected, so I've done the following: The program reads the process's combined output and error streams in a "r...

Why won't my program terminate?

I have a .NET Compact Framework app that can runs on three windows machines (Desktop windows and two WinCE machines) and on the WinCE devices, the process never terminates on exit, even if I call Application.Exit(). Besides .NET, it uses one COM component (which does everything on the UI thread). If I break into the debugger after exitti...

CreateProcess with WaitForSingleObject performance degradation

Everyone probably knows the code to run a program and wait for it to end: CreateProcess(... WaitForSingleObject(Process.hProcess, INFINITE It was used several times by myself. But recently I found that this call when it launches a program with a multimedia playback has worse performance than the same process being executed from ...

C# - Restarting application conflicts with "program already running" error

When I call the Application.Restart() method, the error comes up that detects whether the application is currently running. Is there anyway around this? static void Main(string[] args) { string proc = Process.GetCurrentProcess().ProcessName; Process[] processes = Process.GetProcessesByName(proc); if (pro...

Example of CPU and I/O burst cycle?

Can somebody give me an example of CPU and I/O burst cycle? I know the CPU must do its calculation during the burst, but how about the I/O? What actually happens during the I/O time? ...

16-Bit Apps running under NTVDM

I am trapping for the execution of some old 16-bit applications that our internal folks should no longer be using. They are 1985 DOS apps, so trapping for them was easy... capture any process that launches under NTVDM.exe Now, the problem is finding out which program NTVDM is actually running under the hood. Apparently there are a coupl...

PHP Check Process ID

This is something i have wondered for a while and decided to ask about it. We have the function getmypid() which will return the current scripts process id. Is there some kind of function such as checkifpidexists() in php? I mean a inbuilt one and not some batch script solution. And is there a way to change a scripts pid? Some clarif...

Programmatic resource monitoring per process in Linux

Hi, I want to know if there is an efficient solution to monitor a process resource consumption (cpu, memory, network bandwidth) in Linux. I want to write a daemon in C++ that does this monitoring for some given PIDs. From what I know, the classic solution is to periodically read the information from /proc, but this doesn't seem the most...

What is the 'realtime' setting for, for process priority?

From what I've read in the past, you're encouraged not to change the priority of your windows applications programmatically, and if you do never to realtime. Could anyone clear up what the realtime process priority setting does as opposed to High, and Above Normal? ...

Forwarding command line arguments to a process in Python

I'm using a crude IDE (Microchip MPLAB) with C30 toolchain on Windows XP. The C compiler has a very noisy output that I'm unable to control, and it's very hard to spot actual warnings and errors in output window. I want to write a python script that would receive arguments for compiler, call the compiler with same arguments, filter resu...