16.0.0 Network parallelism #47

Open
opened 2022-06-12 00:03:03 -04:00 by rayaman · 2 comments
rayaman commented 2022-06-12 00:03:03 -04:00 (Migrated from github.com)

Plan is to structure network parallelism like threads, so they should contain methods like:

NGLOBAL, NTHREAD = require("integration.networkManager"):init(connectionDetails)
NTHREAD:newFunction(func, holdme)
NT = multi:newNetworkThread(name, func, ...)
NT = NTHREAD:newNetworkThread(name,func,...)
multi:newNetworkQueue(name) -- Like systemthreadedqueue
multi:newNetworkTable(name)
multi:newNetworkJobQueue(n) -- If the host contains the libraries for systemthreading, all hosts along with all their threads will run jobs.

-- The NTHREAD interface should work just like THREAD.

Internally, things will get rather complex. Network parallelism will require the socket library to work. A lot of work will need to be done to get this functional. Should be fun though

Plan is to structure network parallelism like threads, so they should contain methods like: ```lua NGLOBAL, NTHREAD = require("integration.networkManager"):init(connectionDetails) NTHREAD:newFunction(func, holdme) NT = multi:newNetworkThread(name, func, ...) NT = NTHREAD:newNetworkThread(name,func,...) multi:newNetworkQueue(name) -- Like systemthreadedqueue multi:newNetworkTable(name) multi:newNetworkJobQueue(n) -- If the host contains the libraries for systemthreading, all hosts along with all their threads will run jobs. -- The NTHREAD interface should work just like THREAD. ``` Internally, things will get rather complex. Network parallelism will require the socket library to work. A lot of work will need to be done to get this functional. Should be fun though
rayaman commented 2023-05-14 01:11:29 -04:00 (Migrated from github.com)

Currently being planned for the next release.

Currently being planned for the next release.
rayaman commented 2023-06-25 21:51:29 -04:00 (Migrated from github.com)

Will hold off on this for now.

Will hold off on this for now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: epicknex/multi#47
No description provided.