Gamestudio Links
Zorro Links
Newest Posts
MT4/5 Bridge: Stability & Latency?
by Zheka. 02/28/21 15:05
Zorro - import diff time zones csv
by Neb. 02/28/21 12:23
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/26/21 13:15
MACD / Stoch useage
by TraderTom. 02/25/21 21:22
findContract not finding a contract
by AndrewAMD. 02/25/21 11:53
New Zorro version 2.35
by jcl. 02/24/21 14:40
AUM Magazine
Latest Screens
Scheherazade's Journey
Paradox Vector
The Space Between
Pogostuck: Rage With Your Friends
Who's Online Now
9 registered members (Lozoteva, OptimusPrime, 1ND1G0, TraderTom, Dooley, AndrewAMD, 3run, NewBorn, 1 invisible), 480 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
VinVillin, Santofimio, LorraineJones, SkNiX, wongkrezi
18601 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: 24
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 24
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: 46
Hamburg, Germany
Jerome8911 Offline
Newbie
Jerome8911  Offline
Newbie

Joined: Feb 2005
Posts: 46
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: 24
F
faustf Offline OP
Newbie
faustf  Offline OP
Newbie
F

Joined: Jun 2016
Posts: 24
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