Questions tagged [pipelining]

In computing, a pipeline is a set of data processing elements connected in series, where the output of one element is the input of the next one.

In computing, a pipeline is a set of data processing elements connected in series, where the output of one element is the input of the next one. The elements of a pipeline are often executed in parallel or in time-sliced fashion; in that case, some amount of buffer storage is often inserted between elements.

Computer-related pipelines include:

  • Instruction pipelines, such as the classic RISC pipeline, which are used in central processing units (CPUs) to allow overlapping execution of multiple instructions with the same circuitry. The circuitry is usually divided up into stages, including instruction decoding, arithmetic, and register fetching stages, wherein each stage processes one instruction at a time.
  • Graphics pipelines, found in most graphics processing units (GPUs), which consist of multiple arithmetic units, or complete CPUs, that implement the various stages of common rendering operations (perspective projection, window clipping, color and light calculation, rendering, etc.).
  • Software pipelines, where commands can be written where the output of one operation is automatically fed to the next, following operation. The Unix system call pipe is a classic example of this concept, although other operating systems do support pipes as well.
  • HTTP pipelining, where multiple requests are sent without waiting for the result of the first request.

Source: Wikipedia

164 questions
1
vote
0 answers

How to read from stdin and write to stdout, while only flushing when the input flushes?

While I am writing some python-scripts, which filter output from an other program which is piped into the script, I only want to flush the output, when the input-program also has flushed its output. However, the script do not always read whole…
cmdLP
  • 1,658
  • 9
  • 19
1
vote
2 answers

How can I redirect outputs from a Python process into a Rust process?

I am trying to spawn a Rust process from a Python program and redirect Python's standard output into its standard input. I have used the following function: process = subprocess.Popen(["./target/debug/mypro"], stdin=subprocess.PIPE) and tried to…
Traoré Moussa
  • 433
  • 1
  • 6
  • 22
1
vote
4 answers

Pipelining to get certain data

I have a command that gives the following output: #sec one a : same b : red c : one d : e : f : #sec two a : same b : blue c : two d : e : #sec three a : different b : green c : three d : e : #sec four a : different b : yellow c : four #sec…
Arohi Gupta
  • 95
  • 1
  • 8
1
vote
2 answers

Redis pipelining 200 instructions sent, only 189 answers

I am learning Redis and I am blocked with the pipelining concept, I am trying to send instruction to my redis server Do to so I using a socket whitch will connect to the redis server I am using. Here is my code (I am French so some words will be in…
Adrien G
  • 13
  • 4
1
vote
1 answer

Is there an equivalent of Redis's "pipeline" in OrientDB?

In redis there is a way to "group" commands to reduce the number of exchanges between the client and the server. (redis pipelining) When used with hundred or thousands of commands, it can dramatically reduce a server load. Is there a equivalent in…
SuperPython
  • 1,007
  • 2
  • 12
  • 24
1
vote
1 answer

Cap'n Proto and promise pipelining

I would like to try promise pipelining with Cap'n Proto C++ RPC but I don't know how to do it. Here is my schema : interface Test { getInt @0 () -> (intResult :Int32); increment @1 (intParam :Int32) -> (intResult :Int32); } Here is what I would…
B. Clement
  • 298
  • 2
  • 13
1
vote
1 answer

Implementing pipelining and transaction both to a redis cluster using go-redis package without WATCH

My requirement is to implement pipelined transactions connecting to a redis cluster using go.I am using go-redis package which supports redis cluster,pipeling and transactions.How do I implement pipelined transactions without using WATCH key in…
PLSD
  • 21
  • 1
  • 4
1
vote
1 answer

libcurl pipelining -- add a new url while multi perform is underway

Let's say you have this curl_easy_setopt(pCurl, CURLOPT_URL, url); curl_multi_add_handle(pCurlMulti, pCurl); curl_multi_perform(...) // now we are waiting for response from the server // while waiting, could we call curl_easy_setopt(pCurl,…
user5266221
  • 33
  • 1
  • 6
1
vote
0 answers

How to implement Jedis pipelining which takes list of commands as input?

I am using redis with java using Jedis as redis-client. I have a class public class RedisDBManager which has methods which call Jedis to execute the commands on redis. Sample method inside RedisDBManager public Set
Ishag
  • 41
  • 6
1
vote
1 answer

Pattern of decoding instruction

I am analyzing Agner Fog's "Optimizing subroutines in assembly language: An optimization guide for x86 platforms". Especially I am trying to understand chapter 12.7. And there is an issue I can not understand. The author writes: Instruction…
Gilgamesz
  • 4,727
  • 3
  • 28
  • 63
1
vote
0 answers

Persistent Connection with OnReceived response

I'm just starting to learn about "Persistant Connections" in SignalR and like for instance that I'm able to send out pre-serialized json. But this method of sending from the client, receiving serverside and then send back any respons again is a bit…
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
1
vote
1 answer

Instruction cycle (PIC18)

I'm trying to understand the steps that it takes to go through an instruction and their relationship with each oscillator cycle. The datasheet of the PIC18F4321 seems to divide this process into 2 basic steps: fetch and execution. But it does not…
somename
  • 23
  • 4
1
vote
0 answers

How to handle pipelined requests with C#?

I need to handle pipelined requests in my C# Mono (Mono version 3.12.1 on Linux) server, but I noticed that the second request in the pipeline is always ignored. Here's my netcat command to test pipelining: nc -v localhost 5000 < httppipe.txt…
Newtang
  • 6,414
  • 10
  • 49
  • 70
1
vote
1 answer

sitecore wrapping for tags pipeline in fields are not working

I am using sitecore 7.2 & I have created pipeline for enclosing tags for single-line Text as below. public class SingleLineFieldEnclosingTags { public void Process(RenderFieldArgs args) { if (args.FieldTypeKey !=…
syed Ahsan Jaffri
  • 1,160
  • 2
  • 14
  • 34
1
vote
2 answers

Fixing load-use hazard issue in pipeline (MIPS)

I have been working on some low level programming with 5 stage pipelining. But I hit a snag. Assuming this diagram https://i.stack.imgur.com/Sbe0C.png and the mips code: lw $4,1000($6) sw $4,2000($6) what would actually happen? I assumed there…