Hi,
I would like if you can commit this changes or can send me a diff. The race
condition between the two locks is one of the major problems on smp
machines. An other problem is the registry. Some registry functions are not
thread safe, which results in wrong values and very often in a crash.
- Hartmut
-----Original Message-----
From: ros-dev-bounces(a)reactos.com
[mailto:ros-dev-bounces@reactos.com] On Behalf Of Thomas Weidenmueller
Sent: Friday, November 05, 2004 5:47 PM
To: ReactOS Development List
Subject: Re: [ros-dev] Race Condition?
Filip Navara wrote:
I belive there is only one lock (the dispatcher
lock) on
Windows (<= XP).
That's true - i already prepared the thread management for that. The
current lock could be renamed to the dispatcher lock - when
inserting/removing threads from a process, the process should be just
locked during the action. I have written a patch for the
process locking
mechanism that win2k uses - but Alex prefers to "upgrade" to
xp and use
pushlocks which aren't implemented yet.
P.S. The thread dispatching that is currently in
Ps should
be moved to
Ke.
I agree, and not just that, also everything that has to do with the
KTHREAD/KPROCESS structures should be moved there.
Thomas
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.com
http://reactos.com:8080/mailman/listinfo/ros-dev