Threads BlitzMax ?
BlitzMax Forums/BlitzMax Programming/Threads BlitzMax ?
| ||
Hello, my only contact with the strings in programming have been through Blitz3D with the library FastPointer, however, in BlitzMax, I have a large set of commands for this type of progrmaciòn, and I would like to know from you all about the threads , which is its advantage, as is its proper implementation. What are Mutext, and semaphores. I appreciate all the help. |
| ||
For generic hints about "Mutex" or "Semaphores" you would better use these terms in connection with google - and limit to sites in your language. You will surely understand way more then. bye Ron |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=91458 |
| ||
And this, as a complement to the topic GW pointed to: http://www.blitzbasic.com/Community/posts.php?topic=80677 One of the advantages of using threads is being able to do things in your program asynchronously. Instead of loading a file and waiting for it to finish (the program "pauses" while the file is loading), using a secondary thread to load the file allows your program to continue responsive. This is how you can make a game with background loading, like for example loading part of a level while you keep playing the game, without the need for those "LOADING..." screens. |
| ||
Thanks You Guys. =) |
| ||
Oh I forgot to say this: threading is a feature of the operating system, not BlitzMax. BlitzMax hides the complicated code and gives you cleaner, simpler thread functions that work cross-platform. |