Clik Programming language is designed for multi threading computing. The c++ form is called Clik Plus.
The two keyword that are used in Clik language are:
Spawn is a procedure call in Clik Language and it is used to modify the executing code safely with the other executing code. Sync is a keyword which indicates that the execution of current procedure is only possible when you execute the previous spawned procedures.
Given example is an recursive implementation of Fibonacci fuction in Clik:
cilk int fib (int a) { if (a < 2) return a; else { int c, d; c = spawn fib (a-1); d = spawn fib (a-2); sync; return (c+d); } }
Assignment Writing Help
Engineering Assignment Services
Do My Assignment Help
Write My Essay Services