Questions tagged [multitasking]
16 questions
22
votes
4 answers
Why coroutines are back?
Most of the groundwork for coroutines occurred in the 60s/70s and then stopped in favor of alternatives(e.g., threads)
Is there any substance to the renewed interest in coroutines that has been occurring in python and other languages?

user1787812
- 739
- 7
- 16
8
votes
2 answers
What is the "yield" functionality in Windows 3.11?
I have read that Windows 3.11 uses cooperative multitasking, which means that the OS does not do process scheduling whenever it wants, but rather the currently running process "yield" the execution to the OS whenever the process wants, and then the…

rony_t
- 201
- 1
- 3
6
votes
1 answer
When to use coroutine over generator?
Pipeline processing of data can be done either,
using generators only
Example generator in pipeline:
def grep(source, pattern=None):
patternObject = re.compile(pattern)
for line in source:
if patternObject.search(line):
yield…

user1787812
- 739
- 7
- 16
6
votes
3 answers
Should I fix small issues or let them go?
I ran into the following issue where a keyboard shortcut I was used to was no longer working in Ubuntu. That's just an example. For programming, this kinds of thing happens a lot, but it also happens in any aspect of work and life.
I'm always…

Alan Turing
- 1,533
- 1
- 16
- 20
6
votes
3 answers
How to manage/organise when you have to multi-task on multiple 1 man projects?
We are a team of developers working on multiple small projects - a developer could have 3 or more 1 man projects to work on and keep moving. It can feel like your time is pretty fragmented & interrupted moving between project to project. Sometimes…

GBH
- 391
- 4
- 10
6
votes
3 answers
Multitasking how to keep track of what you're doing
I'm in a long debugging task, I need to figure out where to hook up some extra functionality I need.
It's cumbersome work, and I've been debugging 2 whole days, and I'm on my third, but I work in multiple projects, and I'm returning to this after…

Lacrymology
- 718
- 5
- 11
5
votes
2 answers
are multithreading, multiprocessing, multitasking implemented at instruction set or OS?
On a computer with a single cpu core,
must a multithreading program be implemented based on an OS? Can it be implemented in the instruction set and run without an OS?
Can multiple programs run in multitasking way without an OS?
Can multitasking…

Tim
- 5,405
- 7
- 48
- 84
3
votes
1 answer
How to communicate between cooperative tasks "first me, then you"?
I am in the final stages of development of a simple embedded system. The device performs PID coefficient estimation and then instantiates a PID controller with the estimated coefficients.
The architecture of the program is cooperative multitasking.…

Vorac
- 7,073
- 7
- 38
- 58
3
votes
6 answers
Multiple projects - similar platforms or as different as possible?
When working on multiple projects simultaneously (for the sake of simplicity let's say half time each on two projects), which is better? Should the two projects
Use the same language? Same/similar frameworks?
Use entirely different…

yoozer8
- 693
- 1
- 8
- 20
2
votes
2 answers
Implementing a method to achieve faster image acquisition
I hope I can explain my question clearly. I'm planning to do some real time 2D grayscale image acquisition, and after reading some articles, I noticed that many are using buffers or multithreading or even parallel processing. Below top shows how in…

GNZ
- 137
- 3
1
vote
1 answer
Does "green threads" necessarily imply cooperative multitasking?
Java used to have green threads, i.e., implemented inside the VM.
The description of Python Eventlets says
"Eventlet is built around the concept of green threads (i.e. coroutines...).... Green threads cooperatively yield to each other"
But as I…

Joshua Fox
- 1,090
- 10
- 18
1
vote
1 answer
One loop or MultiTasking with FreeRTOS in ESP32 project?
I programmed a CAN Bus logger for the ESP32 with ESP-IDF.
Currently this is just one main program with one loop. In that loop data is read from the CAN-Bus receiver and written to one log file on a SD-Card.
Now I also want to receive data from the…

Edgar
- 293
- 1
- 2
- 10
0
votes
3 answers
Multiprocessing vs multithreading
During my last job interview which was about half year ago, the technical guy asked me, whether the better option is to use e.g. 100 processes to do some work, or only one process but with 100 threads.
There wasn't any information about how many…

bielu000
- 267
- 5
- 11
0
votes
2 answers
How handling CPU-bound tasks can be implemented?
I understand task as task in C#, but this questions is not related to C#.
Let's say I have single thread and two tasks (both CPU-bound). I would like to run them concurrently, without running one of them at the expense of starving completely the…

greenoldman
- 1,506
- 1
- 14
- 27
0
votes
0 answers
How to handle multiple similar projects? Why?
I currently have 4 projects under development. All of them related to the same product (hardware) but different after all (desktop, android and web environments).
That product, the hardware, is constantly changing, improving and thus all related…

Salvatorelab
- 109
- 3