Questions tagged [queueing]
57 questions
0
votes
2 answers
The best answer for queueing theory in an interview?
last week I've done a phone interview and got stuck on one question:
Bank 1 has 5 tellers, each serving one customer at a time
independently; Bank 2 has 5 tellers, sharing a queue of customers to
serve. Which bank you prefer? Why?
I don't know…

Leonard
- 139
- 1
- 11
0
votes
0 answers
Python generator confusion
I'm wondering if there's a way to have a input for a tensorflow queue be fed in from a python generator (specifically the value of x_input_data in this example).
import tensorflow as tf
def generator():
x = 0
while True:
x+=1
…

BRIAN LIU
- 31
- 2
0
votes
0 answers
Implementing queued tasks that start based on conditions
I am looking for the ideal/thread safe implementation of a task queue that will start each task based on an internal condition (which i also only want to be checked at a timed interval), but also check that there aren't too many other tasks running.…

Mayura Vivekananda
- 674
- 4
- 15
0
votes
1 answer
inserting into priority queue. MIT c programming opencourseware
Iam currently trying an exercise from the "practical programming in C" from MIT opencourseware. the exercise is on huffman coding. it is lab2 part 2 where Iam having an Issue. Primarily the pq_insert() method. Iam getting pretty confused as to how…

filthy_wizard
- 740
- 11
- 25
0
votes
1 answer
How to solve 2D Markov Chains with Infinite State Space
I have 2 dimensional markov chain and I want to calculate steady state probabilities and then basic performance measurements such as expected number of customers, expected waiting time, etc. You can check the transition rate diagram link…

alamaranka
- 103
- 6
0
votes
1 answer
Retrieving Queued Messages on Remote Federation Upstream in Rabbitmq
I've recently been working on setting up RabbitMQ clusters on Google Computer Engine and AWS connected via federation. So far I've been able to get that working fine although I've encountered an issue that I can't figure out how to solve.
At a…

hartfordfive
- 1,275
- 2
- 11
- 18
0
votes
0 answers
Sporadic memory bloat using Toub's thread pool for long running tasks?
I have read the Toub's thread pool is a good solution for longer running tasks, so I implemented it in the following code. I'm not even sure if my implementation is a good one because I seem to have sporadic memory bloat. The process runs around 50…

Evil August
- 411
- 6
- 18
0
votes
1 answer
PyGame Queueing Music Problems, not waiting for first song
I'm playing ogg sound files from a list generated from my selected music file directory. For some reason the first song is skipped and it plays starting from the second song. For some reason it plays a split second of the first song occasionally…

Bennet Leff
- 376
- 1
- 4
- 18
0
votes
1 answer
Writing to two Redis servers
I am looking for a way to send Redis writes from one particular client to two Redis servers running on different hosts.
This isn't quite replication, if writes come in from any other client I do not want those to be replicated. e.g. writes from…

OneSolitaryNoob
- 5,423
- 3
- 25
- 43
0
votes
1 answer
jQuery Effects and Queues
I'm trying to manipulate an object using a jQuery effect chain. Some of the effects in the chain depend on the current position of the object. But it seems the entire effect chain is queued prior to execution, so any function calls to get current…

Chris
- 3
- 3
-1
votes
1 answer
How to make a queue system with game rooms using node.js and socket.io?
I'm trying to implement this idea but I don't know what's the best way to do it.
There should be a button to queue up for a game, and there should be game rooms with 3 players in each.

Gavr
- 3
- 2
-1
votes
1 answer
queueing network and mean value analysis
1) i am trying to code the calculation of "residence time" for multi class jobs using "approximate MVA"(mean value analysis).
2) i have a program with "Exact MVA". i am using 2 classes and 2 stations. the problem is that the throughput for each…

Rupinder
- 101
- 1
- 1
- 3