Sponsored Content
Full Discussion: semaphore access speed
Top Forums Programming semaphore access speed Post 302238097 by era on Friday 19th of September 2008 03:20:06 AM
Old 09-19-2008
Just for emphasis, your results include the overhead of starting a large number of processes, and in each of them, printing a line of text to a buffered block device, and exiting the process. Bottlenecks in any of these operations are much more likely to explain the results than the thing you are trying to test.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

semaphore

hi, is there any command where we can monitor semaphores? (1 Reply)
Discussion started by: yls177
1 Replies

2. UNIX for Dummies Questions & Answers

Semaphore

Hi, I'm new to UNIX. I need to know what's a semaphore Do reply. Thanks VJ (3 Replies)
Discussion started by: vjsony
3 Replies

3. Filesystems, Disks and Memory

dmidecode, RAM speed = "Current Speed: Unknown"

Hello, I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info: RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!! Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies

4. Shell Programming and Scripting

Semaphore

Hi, I am looking to use a semaphore for the first time in one of my scripts. I am just wondering if there are any simple examples or tutorials around? I am a beginner so the simpler the better :) Thanks -Jaken (2 Replies)
Discussion started by: Jaken
2 Replies

5. UNIX for Dummies Questions & Answers

semaphore

what is semaphore? can any body explain it in a more simple way than the manual ?? replies appreciated Regards raguram R (7 Replies)
Discussion started by: raguramtgr
7 Replies

6. Filesystems, Disks and Memory

data from blktrace: read speed V.S. write speed

I analysed disk performance with blktrace and get some data: read: 8,3 4 2141 2.882115217 3342 Q R 195732187 + 32 8,3 4 2142 2.882116411 3342 G R 195732187 + 32 8,3 4 2144 2.882117647 3342 I R 195732187 + 32 8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies

7. Shell Programming and Scripting

semaphore

Control two exclusively shared resources(semaphore). The two resources are two files. The producer will write even numbers to one file, and odd numbers to another one. The consumer respectively reads from each file until it gets 5 even numbers and 5 odd numbers. Can any one help me with the... (0 Replies)
Discussion started by: gokult
0 Replies

8. Programming

Semaphore

If I create a semaphore and then I fork a number of child processes then all the child process use that same semaphore. Since the process address spaces are different rfom each other then how all the child process are able to access the same semaphore? I understand that semaphore/mutex is at os... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

9. UNIX for Beginners Questions & Answers

Semaphore

I was asked to add this piece of code to a c program which I will execute through the shell: for(long i = 0; i < NITER; i++) { sem_wait( &sema); count++; sem_post( &sema); } I didn't get it, which is the critical section ? if it's "count++" how would a thread wake up in order to enter it... (1 Reply)
Discussion started by: uniran
1 Replies
fuser(1M)																 fuser(1M)

NAME
fuser - list processes using a file or file structure SYNOPSIS
file ... file ...] ... DESCRIPTION
The command lists the process IDs of processes that have each specified file open. For block special devices, all processes using any file on that device are listed. The process ID may be followed by a letter, identifying how the file is being used, as follows: file is current directory of the process. file is the root directory of the process, as set up by the command (see chroot(1M)). The process has file open. The process has file memory mapped. file is the text file of the process. The process IDs associated with each file are printed to standard output as a single line separated by spaces and terminated with a single newline. All other output -- the file name, the letter, and the user name -- is written to standard error. Options has the following options: Display the use of a mount point and any file beneath that mount point. Each file must be a file system mount point. Display the use of the named file only, not the files beneath it if it is a mounted file system. This is the default. Display the login user name in parentheses following each process ID. Send the signal to each process using each file. You must have appropriate privileges to kill processes that you do not own. You can respecify options between groups of files. The new set of options replaces the old set. A dash by itself cancels all options cur- rently in force. Operands has the following operand: file One of the following values: o With the option, the name of a file. o With the option, the name of a mounted file system or special file. o With the option, the name of a file system mount point. NETWORKING FEATURES
You can use with NFS file systems or files. If the file name is in the format used in to identify an NFS file system, treats the NFS file system as a block special device and identifies any process using that file system. If contact with an NFS file system is lost, fails, since contact is required to obtain the file system identification. Once the NFS file system is recontacted, stale file handles from the previous contact can be identified, provided that the NFS file system has the same file system identification. EXAMPLES
Terminate all processes that are preventing disk drive 1 from being unmounted, listing the process ID and login name of each process being killed. List process IDs and login names of processes that have the password file open. Combine both the above examples into a single command line. If the device is mounted on directory list the process IDs and login names of processes using the device. Alternately, if is the mount point for an NFS file system, list process IDs and login names of processes using that NFS file system. If is an NFS file system, list all processes using any file on that file system. If it is not an NFS file system, treat it as a regular file. SEE ALSO
ps(1), mount(1M), kill(2), signal(2). STANDARDS CONFORMANCE
fuser(1M)
All times are GMT -4. The time now is 06:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy