posix
File backup in linux with advisory locks
How do backup programs make开发者_C百科 sure they get a consistent copy of a file, when file locks in linux mostly are advisory?[详细]
2023-04-04 07:15 分类:问答Python: asserting that I'm running on POSIX?
I\'m writing some POSIX-specific code, and although I\'m not supporting other platforms I\'d like to make sure they get a nice clear error at import time rather than strange errors, if they tried to u[详细]
2023-04-04 06:26 分类:问答Accessing global variables in pthreads in different c-files
I have a main.c with a global variable called int countboards. In the main() I start apthread, that listens to ONE TCP-Connection and runs that through (progserver.c). Means, this thread will never re[详细]
2023-04-03 23:17 分类:问答pthread_mutex_timedlock and the deadlock
Typically if a task1 holds lock A wants to take a lock B and another task2 has taken lock B and is waiting for lock A held by task1), this causes the deadlock.[详细]
2023-04-03 18:02 分类:问答How can I code command line interface?
I\'m a GUI developer. I have used many of GUI frameworks including WindowsForms, Flash, HTML, AppKit, UIKit. I can say I know how to code GUI.[详细]
2023-04-03 08:34 分类:问答try-lock mutex call vs CAS calls
As the mutex in most of the systems are implemented using CAS ops, I was wondering about performance comparison of these two constructs.[详细]
2023-04-03 08:23 分类:问答POSIX thread exit/crash/exception-crash while holding mutex
Is there a well defined behavior for POSIX mutex ownership in case of Thread exits Thread crashes Thread crashes due to exception[详细]
2023-04-03 07:38 分类:问答Replacement for the ioctl() function
I am developing a device driver I/O model for small microcontroller applications, using POSIX as a guideline for interface design. I implemented ioctl() as a means of controlling d开发者_如何转开发riv[详细]
2023-04-02 21:18 分类:问答Difference between wait in stdlib.h and sys/wait
I\'m pretty sure there\'s such question, but I can\'t find it :\\ Anyway, here\'s the issue: What is the difference between开发者_开发知识库 wait in stdlib.h and sys/wait.h o.O ?[详细]
2023-04-02 16:55 分类:问答Posix Timer periodically skips ahead half of its period
I have a task linked to a Posix Timer (timer_create()) that executes every 20 ms/50 Hz. Works fine for the most part, except every 334.5 seconds (approx.) the timer executes 10 ms early for the one cy[详细]
2023-04-02 01:38 分类:问答