Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
80 user(s) are online (63 user(s) are browsing Forums)

Members: 1
Guests: 79

beanbandit, more...

Support us!

Headlines

Report message:*
 

Memory protection and tasks/processes

Subject: Memory protection and tasks/processes
by Hans on 2007/9/13 18:25:08

With the new MEMF_PRIVATE flag for memory allocations, I was wondering how this related to tasks/processes. On other OSes, processes have separate memory spaces, but threads within a process can share data.

So, if I declare memory MEMF_PRIVATE, can I access them from all tasks created by the same DOS process, or is it private to that task? It would be nice to have threads with the same memory protection model as other systems (i.e., protect the process, but allow threads to share data freely).

I'm about to start work on multi-threading, and it would like to use what memory protection facilities are available.

Hans

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project