It's probably just an exercise that squeezes in more than one lesson. I don't think it's meant to be efficient. I have a working code, I just need to get it to call the right set numbers and get my...
Type: Posts; User: GigTu
It's probably just an exercise that squeezes in more than one lesson. I don't think it's meant to be efficient. I have a working code, I just need to get it to call the right set numbers and get my...
Thread 1 generates the number of Fibonacci numbers given by the command line ie: 0 1 1 2 3
Thread 2 adds +1 to each of the numbers generated by thread 1 ie: 1 2 2 3 4
Thread 3 subtracts -1 from...
"%d", fib[i]+1)" and "%d", fib[i]-1)" do not work when i insert them into the threads, but then neither does my original function of first + second = next .....etc etc etc
Hi manasij,
No, I need to have one thread spit out the fib sequence, another is fib number plus 1, a third thread to calculate fib minus 1.
They should match up, or be parallel to the...
Hi. I have been assigned a task that has me stumped. I am to create 3 threads, parent and children, using the fibonacci sequence. I have two problems.
1) The first is getting my functions to...