Opened 18 years ago

Closed 5 years ago

Last modified 4 years ago

#805 closed enhancement (fixed)

Fast read/write locker

Reported by: axeld Owned by:
Priority: low Milestone: R1/beta2
Component: Network & Internet/Stack Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

The locking mechanism is currently too strict, and prevents concurrency where there is no need to. We need a multiple reader/single writer locking mechanism that is based on the benaphore mechanism. A read lock should be upgradeable to a write lock.

Change History (6)

comment:1 by axeld, 17 years ago

Milestone: R1 Network StackR1
Platform: All

comment:2 by axeld, 16 years ago

Component: System/KernelNetwork & Internet/Stack
Priority: normallow

comment:3 by bonefish, 16 years ago

What properties should the upgrade to write lock function have? I suppose you've something different in mind than read unlock + write lock.

comment:4 by axeld, 16 years ago

I have no idea anymore :-) I guess we should put this ticket aside until we have real concurrency speed problems to solve.

comment:5 by waddlesplash, 5 years ago

Resolution: fixed
Status: newclosed

rw_lock was changed to be almost entirely atomics (with a "25% kernel time reduction on Haiku builds") in 2009, so I'd say this is resolved. We can revisit performance issues later if needed.

comment:6 by nielx, 4 years ago

Milestone: R1R1/beta2

Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone

Note: See TracTickets for help on using tickets.