fifo Questions

2

Solved

I'm trying to create a persistent connection using bash. On terminal 1, I keep a netcat running as a server: $ nc -vlkp 3000 Listening on [0.0.0.0] (family 0, port 3000) On terminal 2, I create ...
Indochina asked 14/2, 2015 at 8:0

18

Solved

Can anyone suggest Go container for simple and fast FIFO/queue, Go has 3 different containers: heap, list and vector. Which one is more suitable to implement a queue?
Waltman asked 12/5, 2010 at 12:45

15

Solved

I'm using ConcurrentQueue<T> for a shared data structure which purpose is holding the last N objects passed to it (kind of history). Assume we have a browser and we want to have the last 100 ...
Monthly asked 2/5, 2011 at 1:54

3

Solved

In C pseudo-code: while (1) { fifo = open("fifo", O_RDONLY | O_NONBLOCK); fd_set read; FD_SET(fifo, &read); select(nfds, &read, NULL, NULL, NULL); } The process sleeps as triggered b...
Anapest asked 30/1, 2013 at 0:11

3

I have a FIFO queue with over 2 mil messages available. And I want to process them with lambda functions but 9 out of 10 times I poll messages I get a reply that the queue is empty. Which is defini...
Roderick asked 19/5, 2018 at 20:8

4

Solved

I'm just working on the FIFO queue (the simple one, just what's pushed first, pops at first) with the variable data size but I'm not sure with the way I'm designing it. The data types I will store ...
Scampi asked 1/8, 2011 at 9:45

3

Solved

I have a program reading from a file "foo" using C++ using: pFile = fopen ("foo" , "r"); I want it to stop executing the rest of the function if the file is a named pipe. Is there a way to check...
Bellinger asked 30/1, 2014 at 22:32

1

The Azure documentation https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted and different articles https://jaliyaudagedara.blo...
Hygrograph asked 13/11, 2021 at 0:33

0

I am looking to use std::binary_semaphore to make sure that threads are processed in the order in which they entered the semaphore. I know that semaphore queues are typically FIFO, but I am not abl...
Radiator asked 8/8, 2021 at 18:54

1

Solved

This post is in continuation of my earlier post where I have already got assistance from Tom Sharpe on how to calculate the Average Price of a stock using the FIFO method as per transaction table &...
Wristwatch asked 12/7, 2021 at 17:50

1

Solved

This post is really worth a read. Another better verion of this topic is available here. If you look at the table below, I am trying to find Avg price at every transaction without adding helper col...
Confutation asked 4/7, 2021 at 8:54

1

I have added to our custom event bus a FIFO queue as a target. When eventbridge is connected to a fifo queue the MessageGroupId property is required. Is it possible to configure dynamically that ...
Lalise asked 21/4, 2020 at 11:28

7

Solved

I want to implement FIFO through a class in Java. Does such a class already exist? If not, how can I implement my own? NOTE I found a class here http://www.dcache.org/manuals/cells/docs/api/dmg/...
Karakorum asked 6/3, 2012 at 8:50

4

Solved

Consider the following scenario: a FIFO named test is created. In one terminal window (A) I run cat <test and in another (B) cat >test. It is now possible to write in window B and get the ou...
Genuflect asked 10/5, 2011 at 22:50

5

Solved

I'm currently trying to create a kernel module that will produce data based on kernel events and push them to a file. After reading that this is bad (and I agree), I decided it would make more sens...
Kela asked 24/11, 2008 at 3:23

1

Solved

When I try to add a message to my FIFO SQS using AWS CLI I get: An error occurred (InvalidParameterValue) when calling the SendMessage operation: The queue should either have ContentBasedDeduplicat...
Lederhosen asked 30/6, 2020 at 10:9

8

Solved

Which STL container would fit my needs best? I basically have a 10 elements wide container in which I continually push_back new elements while pop_front ing the oldest element (about a million time...
Dislike asked 11/8, 2009 at 20:45

1

Solved

I am sampling from an external device in python and store the values in a FIFO queue. I have a fixed size array that I enqueue with a new sample from one end and then dequeue the "oldest" value fro...
Romonaromonda asked 10/6, 2020 at 20:48

7

Solved

In Java doc: [...] Among the exceptions are priority queues, which order elements according to a supplied comparator, or the elements' natural ordering, and LIFO queues (or stacks) which order ...
Wellwisher asked 26/7, 2011 at 16:10

2

Solved

In AWS SQS FIFO's Queues; when the visibility timeout of a readed message, in which possition of the queue will be the message? For example: I have these messages in queue: '[A, B, C, D]' (order...

10

Solved

I like to log a programs output 'on demand'. Eg. the output is logged to the terminal, but another process can hook on the current output at any time. The classic way would be: myprogram 2>&...
Kone asked 9/9, 2011 at 10:45

5

Solved

I have two programs, Writer and Reader. I have a FIFO from Writer to Reader so when I write something to stdin in Writer, it gets printed out to stdout from Reader. I tried doing this with TWO Re...
Sandhog asked 28/10, 2009 at 0:46

1

Solved

Using Postgres 11 Using FIFO, i would like to calculate the price of items taken from the inventory, to keep track of the value of the total inventory. Dataset is as follows: ID | prodno | amou...
Fogle asked 7/3, 2019 at 8:24

6

Solved

How can you create a temporary FIFO (named pipe) in Python? This should work: import tempfile temp_file_name = mktemp() os.mkfifo(temp_file_name) open(temp_file_name, os.O_WRONLY) # ... some proc...
Melodic asked 16/9, 2009 at 1:16

1

Solved

I have a node.js process that needs to read from multiple named pipes fed by different other processes as an IPC method. I realized after opening and creating read streams from more than four fifo...
Heyde asked 2/10, 2018 at 12:42

© 2022 - 2024 — McMap. All rights reserved.