joexbayer / RetrOS-32

32bit Hobby Operatingsystem with graphics, multitasking and networking on i386 architecture.
MIT License
365 stars 12 forks source link

Shared virtual memory for process threads #73

Closed joexbayer closed 11 months ago

joexbayer commented 11 months ago

New threads will share the data and heap section of the parent process. They will however require their own stack.

joexbayer commented 11 months ago

When using malloc, threads of the same process need to share their virtual allocations. But also require synchronization when allocating new memory.

joexbayer commented 11 months ago

create new struct which manages and holds allocations, this struct will hold the lock which processes share.