Minimize scheduler locking on task creation
This takes my CPU utilization on task-perf-spawnalot from 35% to 55%
This commit is contained in:
@@ -136,7 +136,6 @@ int rust_kernel::start_task_threads()
|
||||
rust_task *
|
||||
rust_kernel::create_task(rust_task *spawner, const char *name) {
|
||||
rust_scheduler *thread = threads[rand(&rctx) % num_threads];
|
||||
scoped_lock with(thread->lock);
|
||||
return thread->create_task(spawner, name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user