Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1 10
Impact
~5k people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Jan
14
awarded  Notable Question
Dec
19
comment Generic shared resource locking techniques - is flock the solution?
I'm definitely looking for a Linux C solution. But having looked at this doc, mutexes appear to be used for coordinating between threads, rather than processes.
Dec
18
revised Generic shared resource locking techniques - is flock the solution?
UPDATE to reflect resolution of performance issue
Dec
18
comment Generic shared resource locking techniques - is flock the solution?
@msw pointed me to the solution to the performance problem (see above - I was inadvertently using an NFS-mounted file!). The eventual solution will be coded in C, so Perl and shell won't apply. I'm not sure I fully understand your preference for mkdir, since it doesn't naturally provide queue-until-available behavior for an EXCL lock, and requires spinning. Can you elaborate on the drawbacks to flock?
Dec
18
awarded  Commentator
Dec
18
comment Generic shared resource locking techniques - is flock the solution?
You nailed it! Yes, the file was on an NFS mount, rather than the local file system. Using a local file, it flies. Thanks.
Dec
18
asked Generic shared resource locking techniques - is flock the solution?
Dec
2
comment Need to install VirtualBox Guest Additions 4.3.8 in CentOS 6.3
I abandoned this problem long ago, so I can't verify. (But thanks, hopefully it will help someone.)
Oct
6
awarded  Curious
Sep
24
awarded  Autobiographer
Sep
2
awarded  Popular Question
Jul
22
awarded  Editor
Jul
22
revised Boot Mint from USB flash on macmini3,1 (with rEFInd installed)
added 123 characters in body
Jul
22
comment Boot Mint from USB flash on macmini3,1 (with rEFInd installed)
Make that "I'll assume disk1s1...".
Jul
22
comment Boot Mint from USB flash on macmini3,1 (with rEFInd installed)
I'm going to need more details. First, OSX wants 'bs=4m', not 'bs=4M'. Next, we need to mention unmounting the drive if it's already mounted. 'diskutil list' will help locate it. Mine says /dev/disk1 #: 0: FDisk_partition_scheme *16.0 GB disk1 1: DOS_FAT_32 BOOTILDA 16.0 GB disk1s1 Do I unmount disk1 or disk1s1? I'll assume disk1 and then try your command.
Jul
12
awarded  Promoter
Jul
9
asked Boot Mint from USB flash on macmini3,1 (with rEFInd installed)
Apr
4
awarded  Teacher
Mar
24
asked Need to install VirtualBox Guest Additions 4.3.8 in CentOS 6.3
Mar
23
comment Upgrading CentOS 6.3 to 6.5
Thanks for all your help. I'm not able to make this work, so I'm going to open a new question that's aimed directly at what I'm trying to do - namely, to successfully install the VBOX additions onto this VM disk I've been given.