Skip to content
Discussion options

You must be logged in to vote
  1. Which approach of parallelisation (fork or socket) is chosen and is it possible for the developper to choose/change it?

mirai takes a socket (message-passing) approach. It does not fork as this is unsafe in many cases.

  1. Closely related question: How to use everywhere to simply pass variables, functions etc. already defined within the host environment? Is there a possibility similar to parallel::clusterExport(cluster, vector_of_variables_names_to_be_shared_with_daemons)? Would something like everywhere({list(variable_1, variable_2, function_1, function_2)}) be sufficient?

You could do everywhere({}, variable1, variable2) i.e. not execute anything but export those global variables, w…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by olivier7121
Comment options

You must be logged in to vote
3 replies
@shikokuchuo
Comment options

@olivier7121
Comment options

@shikokuchuo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants