Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 6 years ago. Improve this question I am currently trying to right a shell script which will
Tag: process
What happens after the execution of a handler function on the SIGCHLD signal in C?
I was wondering what exactly happens after the execution of a handler on a signal in C, more specifically on the SIGCHLD signal. I’m actually building a shell and I need to do this: User enters a command with “&” as the last argument A new process is created with fork The parent process returns to the main function and
Improve mysql Speed?
I have mysql/php script running on my linux machine. Its basically migrating files content to MySql table. there are about 4400,000 Files, Account files each file`s content is places in a table in one row. It have been 14 hours and so far it have only done 300,000 Accounts. At first it was very fast and was doing about 1000
how to identify source of frequent process startup
Some months ago I used to play around with Python and Django, finally setting up a Django web service running python manage.py … on a RaspberryPi. Now, I’d like to use the Linux device for other things. Unfortunately, there seems to be a frequent startup of some process (every couple of seconds) that eats up the available processing power. And
Using Fork for Command Line Arguements
I’m trying to execute the command “ls -l” but I’m not exactly sure how to approach it. This is what I’ve tried: However, the command doesn’t seem to work here. It works if I just simply use “ls” but I want to use “ls -l” is there another argument I have to pass to get this to work? Answer First
Read noonnamed pipe in terminal
Hellow. I have very simple C program. I create pipe in program (standard, non-named). Can I read pipe of existing process in terminal (stream with > or cat?). I try it but my command do nothing. Im know tkat i can create named pipe who is very easy for external I/O. I have number of pipe for /proc/number/fd Why I
How to end a process in another linux terminal
Background Info: I’m trying to set up a remote display using a raspberry pi. Currently I’m using fbi (frame buffer image viewer) to display the image. The device is going to be controlled via ssh or web interface – not sure which, but definitely not from the actual device. The Problem is I cant seem to find an easy way
Correct “nice” POSIX scheduling priority for batch processing program
I am working on a bulk image processing program which does not require user attention and need to choose a priority level for this process. The superuser is able to set values from PRI_MIN (-20) to PRI_MAX (+20) and normal users can set from 0 to PRI_MAX. The default level is zero. On Mac OS X 10.11, the man nice(1)
Many-to-one mapping of user threads to a kernel thread
As I understand it, in many-to-one mapping, one kernel thread manages many user threads. This kernel thread helps the user threads make system calls etc. What I don’t understand is: Why do we have many-to-one mapping if a single blocking call would block all user threads managed by the kernel thread ? In many-to-one mapping of user threads to a
How to kill a process by its pid in linux
I’m new in linux and I’m building a program that receives the name of a process, gets its PID (i have no problem with that part) and then pass the PID to the kill command but its not working. It goes something like this: Can someone tell me why it isn’t killing it ? I know that there are some