Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
48 views

I'm building a multi tenant database and I would like to implement fair sharing of resources across multiple tenants. Let's say I have many concurrent users, each with its custom amount of resources ...
1 vote
0 answers
64 views

Recent OpenMP standards introduced task multi-dependencies. This feature was originally proposed in OmpSs if I'm not mistaken. I found an example of applying multi-dependencies to the assembly step of ...
1 vote
0 answers
95 views

I am trying to write a scheduler for a virtual computer that runs Lua and is transparent to the user (i.e.; no coroutine. yields needed) and would still like the user to be able to create coroutines ...
2 votes
2 answers
189 views

We have C code that loops over large (10M - 1000M) double arrays (32-byte aligned) and aggregates them. The code (below) looks trivial, but is as fast as we could get it. Over 20 other approaches, ...
0 votes
1 answer
66 views

I'm working on multitasking for my OS, more specifically fork() for usermode ELF-binaries (they call it by a syscall). After calling fork, it manages to return to the parent process (sometimes) but on ...
0 votes
1 answer
347 views

I'm trying to use one UART in three same priority tasks like the code below, but what is happening is confusing for me! In fact, I want any task to send a string once per second, so I should have 3 ...
-1 votes
2 answers
501 views

Everyone, I am working with ATtiny85 using Arduino IDE. Recently I was learning about RTOS. I want to ask if it possible to run RTOS on ATtiny85 microcontroller? According to my knowledge it may be ...
1 vote
1 answer
149 views

In official docs of Python exist next example: import concurrent.futures import urllib.request URLS = ['http://www.foxnews.com/', 'http://www.cnn.com/', 'http://europe.wsj.com/', ...
-2 votes
2 answers
135 views

I was watching this video from Computerphile and at 10:03 you can see this: where T1 and T2 are threads, and under them are machine instructions. Does it mean a thread is basically made up of a ...
2 votes
0 answers
219 views

I'm using FreeRTOS on a Raspberry Pi Pico (R2040). I'm starting with a 'hello world' type program to check that I can run two tasks: #include "FreeRTOS.h" #include "task.h" #...
0 votes
1 answer
104 views

Depending on the needs of the program, I used multi-threads within a sub-thread for parallel tasking. In this "deep" multi-threading, potential problems such as timeouts and failures may be ...
0 votes
2 answers
227 views

I have this little simple queue where a one task read from a file into the queue and several tasks unpack the content. I works for a while, but eventually crashes because the queue is empty even ...
-1 votes
1 answer
148 views

My code with Numba is slower than without Numba, I don't know what's happening. Please instruct me. #with numba import numpy as np from numba import njit, prange import time (X_train, Y_train), (...
1 vote
0 answers
145 views

I'm using a Delphi generator implementation. The main idea is taken from here: https://habr.com/ru/articles/157777 (text in Russian, but the main idea is clear from the code). The same code can be ...
0 votes
0 answers
133 views

Specifically, I have two tasks fn and fn1 that are being run by a scheduler. The code for each is below: int fn(void *arg) { for(;;) { printf("a"); } return 6; } int fn2(void *arg)...

15 30 50 per page
1
2 3 4 5
...
68

AltStyle によって変換されたページ (->オリジナル) /