Skip to content
Advertisement

Tag: operating-system

Is spliting my program into 8 separate processes the best approach (performance wise) when I have 8 logical cores in python?

Intro I have rewritten one of my previously sequential algorithms to work in a parallel fashion (we are talking about real parallelism, not concurrency or threads). I run a batch script that runs my “worker” python nodes and each will perform the same task but on a different offset (no data sharing between processes). If it helps visualize imagine a

Why does Raspberry Pi need an OS to work?

I am just new to world of electronics. I was just looking about Raspberry Pi as I want to work on it, but a thing that I found that everyone is installing an OS first on the Raspberry Pi. I have worked upon PICs(16f) and Arduino board and it doesn’t need that I just write a code and make burn

Measure execution time in CPU cycles?

My laptop spent 1.3 seconds to complete the process posted below. The same code ran on another machine and the timing was different: 2.1 seconds. This is because another machine runs on different Operation System, it has different CPU, memory and etc. I wonder if instead of timing the process in seconds there would be a way to measure CPU

Advertisement