السلام عليكم
لو سمحتوا ارجو مساعدتي في كتابة مايلي اذا امكن
Write a concurrent program in C, using fork() to create the processes, to calculate the n'th term of the following sequence:
f(n) = 1, n=1,2,3
= f(n-3)+f(n-2)*f(n-1), n>3
You are to use a ring communication structure. The program might run as follows:
$ prog 4
f(4) = 2
$ prog 5
f(5) = 3
$ prog 6
f(6) = 7