python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I make the pthread tasks executes in the correct order according to their priorities?
I'm trying to create 3 thread task with different priorities. The task will only wait or signal other thread tasks, and save the execution in char array to see that they executed as supposed.
Here is ...
moab
Votes: 0
Answers: 2
What's the best way to loop over single line with several separator?
I want to parse the output of fio, I have format them so it has a nice delimiter.
182.07 MB/s|182.55 MB/s|364.62 MB/s|45.5k|45.6k|91.2k#682.65 MB/s|686.24 MB/s|1.36 GB/s|10.7k|10.7k|21.4k#665.21 MB/s|...
Liso
Votes: 0
Answers: 1
What are posix/linux/filesystem durability guarantees for ordered file writes?
Suppose I have a (single-threaded) program that (exclusively) opens a large file and does two non-overlapping writes:
int fd = open(path, O_RDWR);
pwrite(fd, data1, size1, offset1);
pwrite(fd, data2, ...
yuri kilochek
Votes: 0
Answers: 0
Open semaphore without changing its value
Opening a semaphore with sem_open will also initialize it to any given value, is there any way to open a semaphore that is used by another thread without changing its value?
federicoporritos84
Votes: 0
Answers: 1