critical-section
Data access synchronization between multiple threads
I\'m trying to implement a multi threaded, recursive file search logic in Visual C++. The logic is as follows:[详细]
2023-01-14 01:36 分类:问答Are there any consequences to never deleting critical sections?
I am refining a large body of native code which uses a few static critical sections and never calls DeleteCriticalSection, leaving them to process exit to clean up.[详细]
2023-01-11 05:33 分类:问答how to code thread synchronization using any method - eg ..Cevent
hello there I am trying to code a simple application which would help me in reading from a serial port and write to the same serial port using a single 开发者_Python百科thread ...so could someone plea[详细]
2023-01-07 05:07 分类:问答Protecting critical sections based on a condition in C#
I\'m dealing with a courious scenario. I\'m using EntityFramework to save (insert/update) into a SQL database in a multithreaded environment. The problem is i need to access database to see whether a[详细]
2022-12-31 22:43 分类:问答How to use Multiple Variables for a lock Scope in C#
I have a situation where a block of code should be executed only if two locker objects are free. I was hoping there would be something like:[详细]
2022-12-31 05:05 分类:问答How to lock Queue variable address instead of using Critical Section?
I have 2 threads and global Queue, one thread (t1) push the data and another one(t2) pops the data, I wanted to sync this operation without using function where we can use that queue with critical sec[详细]
2022-12-21 15:13 分类:问答Implementing a critical section in CUDA
I\'m trying to implement a critical section in CUDA using atomic instructions, but I ran into some trouble. I have created the test program to show the problem:[详细]
2022-12-15 14:21 分类:问答pthreads : pthread_cond_signal() from within critical section
I have the following piece of code in thread A, which blocks using pthread_cond_wait() pthread_mutex_lock(&my_lock);[详细]
2022-12-10 12:13 分类:问答Disable Hardware & Software Interrupts
Is it possible to disable all interrupts with a ASM/C/C++ program to get full control about the processor?[详细]
2022-12-08 08:50 分类:问答