Pipelining in Java

user2262755 picture user2262755 · Apr 9, 2013 · Viewed 10k times · Source

I have 6 functions:

  • fetch operation
  • decode
  • fetch operands
  • execute
  • writeback
  • updatepc

Each giving input to another. I want to execute them at the same time i.e., pipelining.

How to do that?

Answer

Achintya Jha picture Achintya Jha · Apr 9, 2013

Pipeline Pattern

Pipeline Pattern is helpful in dividing the problem into smaller reusable code components. This is a simple yet powerful structural pattern to organize a complex logic into smaller reusable components, which can be added/removed/modified independently.