Skip to content

Commit d360ed4

Browse files
author
Henry Qin
committed
Changed KernelAPI design to have the kernel set the desired state instead of the desired delta
1 parent 6738c9a commit d360ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wiki/KernelAPI.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Arachne Kernel API Design
22

33
## 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).
55
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.
66
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.
77

0 commit comments

Comments
 (0)