Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 533 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
general questions about multitasking #482488
02/13/21 22:24
02/13/21 22:24
Joined: Jun 2016
Posts: 49
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 49
hi guys lite-c can do multi tasking app or multithred ? if yes anyone have some example or some page for read how to do that ?
thanks bye

Re: general questions about multitasking [Re: faustf] #482535
02/19/21 14:51
02/19/21 14:51
Joined: Feb 2005
Posts: 48
Hamburg, Germany
Jerome8911 Offline
Newbie
Jerome8911  Offline
Newbie

Joined: Feb 2005
Posts: 48
Hamburg, Germany
Hi faustf,

as far as I know the compiler already creates multiple threads by itself. Manually dealing with multiple threads is very complicated. But if you want to break your code manually into multiple threads you may use:

Code
CreateThread(0, 0, my_function, 0, 0, NULL);


With my_function executed in another thread. More about the CreateThread can be found here. I did not deal with multiple threads by now, so maybe I am still missing something here.

And perhaps as advice since this was posted in "Staring with Gamestudio": Usually other means to make your code faster are better and easier to accomplish than multithreading.

Last edited by Jerome8911; 02/19/21 23:25.

Visit my indieDB page for Tactics of World War One

Or download Scheherazade's Journey, made for the A8 Winter 2020 Game Jam

Re: general questions about multitasking [Re: faustf] #482546
02/21/21 23:36
02/21/21 23:36
Joined: Jun 2016
Posts: 49
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 49
thanks for reply


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1