JackKirk Well-Known Member Licensed User Longtime User Mar 25, 2016 #1 Hi, I have just successfully implemented Narek Adonts' "Background Task" class: https://www.b4x.com/android/forum/t...d-without-blocking-the-ui-asynchronous.64081/ which is quite an intriguing bit of code - brilliant if you have a use for it as I do. It has set me to thinking about just what exactly is happening. The class obviously allows you to run another thread asynchronously with the main thread - but where? can you run multiple background threads simultaneously? My iPhone 4s apparently has a dual core processor - do the threads run on one core? one thread on each core? either? is there any way to monitor what is happening? Any pointers to good references? - I googled without success. Regards...
Hi, I have just successfully implemented Narek Adonts' "Background Task" class: https://www.b4x.com/android/forum/t...d-without-blocking-the-ui-asynchronous.64081/ which is quite an intriguing bit of code - brilliant if you have a use for it as I do. It has set me to thinking about just what exactly is happening. The class obviously allows you to run another thread asynchronously with the main thread - but where? can you run multiple background threads simultaneously? My iPhone 4s apparently has a dual core processor - do the threads run on one core? one thread on each core? either? is there any way to monitor what is happening? Any pointers to good references? - I googled without success. Regards...
narek adonts Well-Known Member Licensed User Longtime User Mar 25, 2016 #2 I am not sure but I think it is putting the task in a queue so you can run a lot of them. Upvote 0
JackKirk Well-Known Member Licensed User Longtime User Mar 27, 2016 #3 Sat down and did a bit of swatting - this looks pretty much like it covers everything: https://developer.apple.com/library...ogrammingGuide/Introduction/Introduction.html in more depth than I was really after. In particular this: https://developer.apple.com/library...html#//apple_ref/doc/uid/TP40008091-CH102-SW1 seems to cover the mechanism Narek is using in his "Background Task" class. Regards... Upvote 0
Sat down and did a bit of swatting - this looks pretty much like it covers everything: https://developer.apple.com/library...ogrammingGuide/Introduction/Introduction.html in more depth than I was really after. In particular this: https://developer.apple.com/library...html#//apple_ref/doc/uid/TP40008091-CH102-SW1 seems to cover the mechanism Narek is using in his "Background Task" class. Regards...