You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: wiki/KernelAPI.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Arachne Kernel API Design
2
2
3
3
## System calls
4
-
1.`initArachne(yieldInfoSharedMemoryPtr)`: Called at Arachne startup to establish a shared memory pointer for communication with ther kernel about how many threads the application should give up (this shared memory pointer is *not* thread local).
4
+
1.`initArachne(yieldInfoSharedMemoryPtr)`: Called at Arachne startup to establish a shared memory pointer for communication with ther kernel about how many threads the application should continue to run (this shared memory pointer is *not* thread local).
5
5
2.`blockUntilCoreAvailable(coreInfoSharedMemoryPtr)`: Adds the calling thread to the kernel's internal list of sleeping threads that it will wake up and run when a core becomes available. The shared memory pointer is used to tell the application which core this thread is running on (it should point to a thread local variable) after this call returns.
6
6
3.`setNumCores(priorityArray[])`: Given an array of the number of cores to allocate at each priority, the kernel will asynchronously wake up the requested number of threads from their calls to `blockUntilCoreAvailable` and allow them to run on individual cores.
0 commit comments