Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ thread_count
Method
thread_count
os/src/task/process.rs:60–62 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
58
}
59
60
pub fn thread_count(&self) -> usize {
61
self.tasks.len()
62
}
63
64
pub fn get_task(&self, tid: usize) -> Arc<TaskControlBlock> {
65
self.tasks[tid].as_ref().unwrap().clone()
Callers
nothing calls this directly
Calls
1
len
Method · 0.80
Tested by
no test coverage detected