For questions pertaining to CPU processes.
Questions tagged [process]
27 questions
13
votes
4 answers
Can I have 1 processor core just for my program?
I have to time the time difference between high -> low and low -> high signal edge on GPIO pins. I have written simple program that does this. After running it for some time I was quite happy with the result (0,01 s variations). But from time to…
NonStandardModel
- 286
- 2
- 12
9
votes
3 answers
Can't delete pi user on Raspbian
I have made a new Raspbian installation. All good.
I wanted to delete pi user and make another user with same privileges (lets say gordon).
So first I enabled direct ssh access to user root by doing this:
sudo nano /etc/ssh/sshd_config
...and…
FedeKrum
- 193
- 1
- 1
- 5
5
votes
2 answers
Can the Raspberry Pi 4 better distribute Python scripts to all four cores?
This relates to previous questions regarding the GIL (Global Interpreter Lock) for Python on the Raspberry Pi. My question has to do with the new processor on the Pi 4 - does it still have the same restrictions as the Pi 3, where it cannot natively…
ConcernedHobbit
- 184
- 6
5
votes
2 answers
How many cores does the Pi 2 model B use by default?
How many cores does the Pi 2 model B use by default when executing a command? The reason I am asking this is my friend told me to use the suffix -j4 when I ran the code sudo make. He told me that it would use all cores, so I assumed it didn't use…
Moonclaw
- 68
- 11
2
votes
3 answers
How can I bring a proc started on a different shell in the background to my foreground and then put it back to background
Pfiew that was a long question...
So, during bootup, I am starting on the background a python script (it gets called in the launcher).
sh /home/pi/launcher.sh&
When I ssh to the rpi I can see the python running "top -d 1".
That python script runs…
papatrexas
- 511
- 1
- 3
- 12
2
votes
5 answers
Why is cron needed for Raspbian?
I was looking for some sort of process that is lagging my device. While searching I found that cron is running. If I understand this correctly then cron is needed to run serials of command at a dedicated time. Should I kill it or leave it? What…
Sohan Arafat
- 1,852
- 2
- 12
- 43
1
vote
0 answers
Is it possible to take a picture with the top half of a camera feed, then the bottom half?
Is it possible to take a picture with the top half of a camera feed, then the bottom half? and would it require half as much processing power?
Daverry
- 11
- 1
1
vote
1 answer
raspberry pi zero w process load handling
this is my first project with Raspberry pi.
i want to make a Testing chamber for growing micro greens(small plants).
What this chamber does is following:
1- weigh the the 4 growing pods with load-cell and HX711 (four of each of them)
2- control…
MMoazam
- 13
- 4
1
vote
1 answer
How to check for alive process in an infinite loop and use LED as status indicator?
Clearly I'm a beginner when it comes to setting up a script. I'm trying to check if a process is alive and running, and if so, switch on an LED.
I need help with the following:
Check if a process is running and not have crashed or
the hardware has…
Noah Smith
- 41
- 1
- 5
1
vote
0 answers
Setting maximum process pause time - need to read spi data with less time gaps
I am using a raspberry pi to grab data through a SPI port. Attached to the SPI port is a PIC, programmed so that it samples on an A/D at 12.8kHz, and stores the samples in a 256 long buffer. (to cope with linux process pause and runs).
I have a…
J Rodgers
- 11
- 2
1
vote
1 answer
Is there any way to further increase the speed of clk in spi?
At first, i tried to communicate with MCP3008 with raspberry using wiring Pi library and as it communicates through the spi driver, the data retrival of it is quite slow. Then, i opt for the next option that is to access the register of the BCM2835…
Abhaya Singh Pandey
- 23
- 2
1
vote
2 answers
First and Last things it does
I'd like to display an LED which comes on as early as possible in the Pi's boot sequence to let me know things are progressing. I'd like to switch it off when the Pi has been appropriately shut down.
So, I suppose what I need to know is what are the…
KDM
- 718
- 1
- 9
- 24
1
vote
0 answers
Why the hourglass icon is showing?
After an update of with 'rpi-update' command, while I am opening this menu ,I am noticing a sand-glass icon with the pointer.
This is not a very big problem. But I am confused ,what is happening??
Because, before the update, it was not happening.
Is…
Sohan Arafat
- 1,852
- 2
- 12
- 43
0
votes
1 answer
System Freezing Up, Bad SD?
I have a Pi 3 B running Raspbian Stretch.
Recently, I started experiencing lag logging in with SSH, and sporadically during use. It really became apparent when I tried zipping my 2GB Plex library files. It would hang a few times per minute on a…
Dustin Lewis
- 3
- 2
0
votes
2 answers
How to properly implement threading within a function toggled by a button
I need a little help if possible.
I'm trying to make a threaded function which will make my LEDs blink randomly as long as the button is pushed. when it is released it should exit the function and turn all LEDs off.
When I run the script below I…
nixx
- 3
- 1
- 3