Jump to content

multi threading


Recommended Posts

im a bit rusty on multithreading altogether lol i know i read somewhere that running functions that require information from one another in parallel sometimes cause problems though,

for example if funcion 2 needs data from function 1 you cant run them on separate threads. Again im not sure but if function 1 and function 2 feed data to function 3 they can be run on separate threads that are then joined together and then function 3 is run

Link to comment
Share on other sites

Right, among other things that'd be what lock() unlock() commands are for. Tells it to hold off on thread jumping till the actions performed between the two calls are completed. should be a join or merge in there someplace as well if i recall correctly. That's what ties the various threads back to into one rope, as it were.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...