mirror of
https://github.com/drasko/codezero.git
synced 2026-01-16 12:53:16 +01:00
Updated test0 with a forktest. Fixed timeslices. Updated kmem usage calculations.
- test0 now forks 16 tasks that each modify a global variable. - scheduler now gives 1/10th of a second per task. It also does not increase timeslice of a task that has scheduled. - When a memory is granted to the kernel, the distribution of this memory to memcaches was calculated in a complicated way. This is now simplified.
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
|
||||
/* Ticks per second, try ticks = 1000 + timeslice = 1 for regressed preemption test. */
|
||||
#define HZ 100
|
||||
#define TASK_TIMESLICE_DEFAULT 5000
|
||||
/* #define TASK_TIMESLICE_DEFAULT (HZ/100)*/
|
||||
#define TASK_TIMESLICE_DEFAULT HZ/100
|
||||
|
||||
static inline struct ktcb *current_task(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user