producer-consumer
Safe publication producer consumers scenario
I\'m trying to find the fastest possible and lock free solution for one producer-many consumers scenario. I assume that when dealing with only one producer and values can be lost in between we need to[详细]
2023-04-13 01:59 分类:问答C++ simple threading question
I\'m writing a simple producer/cons开发者_JAVA百科umer program to better understand c++ and multithreading.[详细]
2023-04-06 16:04 分类:问答ProducerConsumer problem
I am trying to translate the scenario below using threads. procA { while (TRUE) { update(x); retrieve(y);[详细]
2023-04-06 11:21 分类:问答Is this an insane implementation of producer consumer type thing?
# file1.py class _Producer(self): def __init__(self): self.chunksize = 6220800 with open(\'/dev/zero\') as f:[详细]
2023-04-04 05:54 分类:问答Producer-Consumer with ExecutorService.newFixedThreadPool - How many threads are created?
public class MainClass { private static final int producerPoolSize = 10; private static final int consumerPoolSize = 20;[详细]
2023-03-29 14:18 分类:问答Producer consumer request cancellation
public class MainClass { private static final int size = 5; private ExecutorService prodExec = Executors.newFixedThreadPool(size);[详细]
2023-03-29 00:41 分类:问答Android(Java) Producer/Consumer with Timer
I am testing a simple producer/ consumer example in android this is what i\'m doing. I have two EditText boxes, one being a producer and the other a consumer. The app also has a single button once th[详细]
2023-03-28 03:15 分类:问答Producer Consumer - Using Executors.newFixedThreadPool
My understanding of a Producer-Consumer pattern is that it could be implemented using a queue shared between the producer and the consumer. Producer submits work to a shared queue, consumer retrieves[详细]
2023-03-27 18:12 分类:问答Using more than one mutex with a conditional variable
Is there a mechanism to have a conditional variable use multiple mutexes? I am in Linux and pthreads in C++.[详细]
2023-03-27 15:04 分类:问答Does Producer/Consumer model equal Actor?
So lately I\'ve been reading a lot of article about how concurrent programming is hard, and how concurrent programming with shared state is near impossible.So languages like Erlang (I think this is on[详细]
2023-03-26 21:38 分类:问答