Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

As BMP uses co-operative multitasking why does the thread class also exist? 

What must threads be used for that couldn't be achieved using co-operative multitasking?

If you are referring to IThread, it simply makes coding easier and you can also easily port blocking code (e.g. while loop) to an event driven/non-blocking environment. You can see sample code for IThread at https://developer.brewmp.com/resources/how-to/using-ithread.

If you are referring to IThread, it simply makes coding easier and you can also easily port blocking code (e.g. while loop) to an event driven/non-blocking environment. You can see sample code for IThread at https://developer.brewmp.com/resources/how-to/using-ithread.