thread - creates an evaluator thread.
As you can see, there are very few required arguments for this function, but an overwhelming number of possible arguments to change the behavior of the thread at different points in its execution. See the documentation for User Level Threads for more details on how these arguments should be used appropriately.
sendTask(thread(...),parent)
F for this argument
creates the thread in suspend mode and it can be started using the
start() function.
This is useful when we want to start two or more threads
at approximately the same time or if we want to create several
threads during an idle segment of the application to be used
at a time in the future.
NULL,
but it can be overridden
here or in the attributes
argument.
NULL,
but it can be overridden
here or in the attributes
argument.
NULL,
but it can be overridden
here or in the attributes
argument.
thread(Quote(fit = lm(x,y); return(fit))),
data = list(x = x[[i]],y=y[[i]]),
attributes = threadAttributes(priority=20)
)