|
|
Subscribe / Log in / New account

Progress with a Plan

Progress with a Plan

Posted Oct 15, 2025 2:38 UTC (Wed) by Hello71 (subscriber, #103412)
In reply to: Progress with a Plan by josh
Parent article: Debian Technical Committee overrides systemd change

your algorithm only works if the modern program is started after the legacy program. in the reverse order, they will both obtain the lock.


to post comments

Progress with a Plan

Posted Oct 15, 2025 3:12 UTC (Wed) by josh (subscriber, #17465) [Link]

No, it works in any of the possible orderings:

1) Modern flock, modern traditional lock, legacy traditional lock: The modern program has the lock, the legacy program waits until the modern program is done.

2) Modern flock, legacy traditional lock, modern traditional lock: the legacy program has the lock, the modern program is waiting on the traditional lock before it can run.

3) Legacy traditional lock, modern flock, modern traditional lock: The legacy program has the lock, the modern program is waiting on the traditional lock before it can run.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds