Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
talk about semaphores
#1
I want to have a cli scripted pair in Python3, where one script will be run for a name and it will wait for a semaphore of that name. A second scenario, if one has the same name, will increase the semaphore. Some scripts may be useful: 3: a script to reduce the semaphore. 4: a script to show if there is anything that is waiting on the named semaphore, or better yet, how many waiters there are, or even better, list the waiters with the process id, waiting time, username. The name should be distinguished between users, but maybe it can allow the root to raise or lower the owner flag of a specified user. Can we do this in Python without running the server or daemon process?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  semaphores Skaperen 1 2,836 Jan-22-2018, 07:28 AM
Last Post: DeaD_EyE
  How to talk with Real Time Clock hardware? jackbk 12 11,274 Feb-15-2017, 05:53 AM
Last Post: jackbk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020