I have try to change the implementation of Grappa to be multithreaded, but I encountered some problems. Could you give me some help?
I mainly modify the code in this commit buaasun@02c397b
When I run the modified version of helloworld, sometimes it can finish all tasks, but sometimes it failed randomly. I guess the problem is in swap_context.
However, it is difficult to debug the problem, because the call stack is broken when the problem happen. I find nothing in gdb backtrace. I have no idea to solve the problem, so I really need your help @bmyerz @nelsonje
BTW. I found a similar project https://github.com/Qthreads/qthreads. It is multithreaded. So I think it should be no problem to change Grappa to be multithreaded.
I have try to change the implementation of Grappa to be multithreaded, but I encountered some problems. Could you give me some help?
I mainly modify the code in this commit buaasun@02c397b
When I run the modified version of
helloworld, sometimes it can finish all tasks, but sometimes it failed randomly. I guess the problem is inswap_context.However, it is difficult to debug the problem, because the call stack is broken when the problem happen. I find nothing in
gdb backtrace. I have no idea to solve the problem, so I really need your help @bmyerz @nelsonjeBTW. I found a similar project https://github.com/Qthreads/qthreads. It is multithreaded. So I think it should be no problem to change Grappa to be multithreaded.