santagada
MModular
•Created by Janks on 9/22/2023 in #questions
Multi threading in Mojo
it is not the same as threading, map maps an iterator and parallelize also take a width. I don't see any threads or semaphores or mutexes yet, so it seems you can't use mojo for general multi threading. At least it seems because it keeps saying it can everywhere, but I haven't seen a single example of two threads doing unrelated work. or channels or acotors or fibers... anything for real multi threading.
7 replies
MModular
•Created by Janks on 9/22/2023 in #questions
Multi threading in Mojo
this is not multithreading right? this example uses simd instructions but there's no real user controllable threads. Are real independent multhithread support in mojo? Is it planned? What I mean is for cases where SIMD instructions are not enough or even usable, for example to run multiple syscalls, multiple sockets in a client/server application?
7 replies