Is there a way to sandbox a linux process into a certain directory, and give this process exclusive rw access to this dir? For example, create a temporary working directory, and start e.g. python or another scripting tool in such a way that it can only write in this directory, without limiting too much of its functionality. And also that...
PackageManager pm = this.getPackageManager();
ActivityManager am = (ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);
List<RunningAppProcessInfo> runningAppProcesses = am.getRunningAppProcesses();
for(RunningAppProcessInfo process : runningAppProcesses) {
try {
ApplicationInfo ai = pm.getApplicationInfo(proc...
Hello fellas!
My problem is:
I want to start a process via a thread and that process should execute his job. As far as I started the process, he remains into memory and does nothing until I close my main program. (like it was some kind of suspended)
And only after exiting main program, this process is starting to do what he must.
Di...
I'm trying to make a basic multiprocessing task and this is what I have. First of all, I don't know the right way to make this program as a non-blocking process, because when I am waiting for the response of a child (with waitpid) the other processes also have to wait in the queue, but, what will happen if some child processes die before...
I have one EXE (built in .Net) running on windows. When it runs, it'd get another EXE from server and execute under that same process.
Using Process.Start I can execute the server EXE after dowloading but that'd start a new process with an extra step of downloading the EXE residing on the server. But I wanted a better solution.
...
Hello,
Can anyone tell me how to get using WinAPI functions memory allocated memory regions of some process? I want know for each region, start address, size and some other things like, protect type etc.
I can't find any WinAPI function to do it ;-(
Can anyone help me?
...
Hi, Im writing a program that manage muti-processes. This is what I have done and its working great! but now, I want to send messages from the child processes to the parent process and viceversa (from the parent to the childs), do you know the best way? Do you know if what I have done is the proper way for what I want (send messages, or ...
Hello everyone, I have a question about sharing queues between processes in Python. Below, I have three queues, one main process, and three inner processes. Each inner process will be adding and getting values from the various queues (they need easy access to the queues).
I think it works as it is right now, but this code is the found...
hi all:
recently i'm working on make checkpoint on linux process and encountered a problem,it looks like that when i munmap memory map of the executable to current process,the symlink /proc/self/exe is dead.what i want is to make this symlink pointing to a other executable(the one for my resumed processs),is that possible?i tried del...
Hi everybody
I have a process in Perl that creates another one with the system command, I leave it on memory and I pass some variables like this:
my $var1 = "Hello";
my $var1 = "World";
system "./another_process.pl $var1 $var2
But the system command only returns the result, I need to get the PID. I want to make something like for...
I've got a little tool to help debug client problems with our Java application. Basically it runs jps.exe to get all the Java processes running on the machine, and then calls jstack and jmap on each of them in turn. Finally, it zips everything up and FTP's it to us for forensic analysis. To run any of the commands it uses the ProcessB...
Both "netstat -p" and "lsof -n -i -P" seems to readlinking all processes fd's, like stat /proc/*/fd/*.
How to do it more efficiently?
My program wants to know what process is connecting to it. Traversing all processes again and again seems too ineffective.
Ways suggesting iptables things or kernel patches are welcome too.
...
How can i slow down a windows process ? I understand that i need to hook queryperformancecounter but what do i need to do next ? Plase help
...
Hi All,
First, i admit all the things i will ask are about our homework but i assure you i am not asking without struggling at least two hours.
Description: We are supposed to add a field called max_cpu_percent to task_struct data type and manipulate process scheduling algorithm so that processes can not use an higher percentage of th...
Hi,
how can i learn cpu usage percentage of a process in kernel-space?
We are trying to limit cpu usage of a process looking at a field added to task_struct.
Forexample if the field is 10 and the process has already consumed the %10 percent of total timeslice we need to prevent the process from runnning.
thanks
...