ICI Techno

ICI TechnoICI TechnoICI Techno

ICI Techno

ICI TechnoICI TechnoICI Techno
  • home
  • psC Language
    • SequentialExecution
  • More
    • home
    • psC Language
      • SequentialExecution
  • Sign In

  • My Account
  • Signed in as:

  • filler@godaddy.com


  • My Account
  • Sign out


Signed in as:

filler@godaddy.com

  • home
  • psC Language
    • SequentialExecution

Account

  • My Account
  • Sign out

  • Sign In
  • My Account

Parallel And Synchronous Execution

Parallel instruction execution

The main difference between C++ and psC is the execution. In C++ instructions are executed sequentially, one at each clock step,  while in psC they are executed simultaneously in a single clock step. For example, assume we have the following C++ and psC functions:

Given initial values for X, Y and Equal, the table compares execution between C++ and psC. As expected, C++ instructions execute one at each step, while psC instructions are executed in a single step. Since execution in a single step is based on the previous step values, the results are different.

Inter-process communications are free

 

The second main difference between C++ and psC is synchronous execution. C++ is basically single-threaded, so parallel execution involves creating threads. Since threads are not synchronous, when two threads try to share a variable, there is an overhead, like a semaphore, to allow safe communication. As shown in the figure, the psC language is parallel and synchronous; there is no overhead for shared variables.

Copyright © 2019-26 ICI Techno - All right reserved.

  • home
  • Privacypolilcy

Powered by