Hi all, thanks for your time.
There's some code on a wikipage which I'm trying to run, but there's some problem with.. Something. Please check the link to wikipedia.
I can't really tell if it's incomplete or not (some of the comments in the code would imply this though) but for some reason it won't function on my W8.1Pro x64, I'm using gcc version rubenvb 4.6.3 if that's any help. The output from the program is (within quotes):
"Child loop begins
then it crashes. One output string is missing, it crashes before "Child loop end" is written.
The weird thing is though, that the code, modified for the Atmel ATmega328p (on the Arduino Uno) to blink, works. It context switches without a glitch, at least from what I can tell. I'm trying to extend the two task to three, to begin with (I know you can do everything with a queueing system for an arbitray amount of threads but I'm not used to C so for now I'll do it caveman style), and I do get the correct output when running it, except it crashes as usual. But unlike before, this does not work on the AVR, so for now I wan't to get to the bottom of this simpler wikipedia example, and that's where YOU come in and save the day!
Basically it's four thirty in the morning and I should sleep, I'll run the example code on my other computer tomorrow but I thought that if you can directly say that it's not my computer's fault but my own, please do tell.