Sponsored Content
Top Forums UNIX for Dummies Questions & Answers what is Critical section is all about? Post 302070803 by compbug on Friday 7th of April 2006 12:52:47 PM
Old 04-07-2006
How can you Interprete with Task

Thanks pal.

but how can you interprete the same for a Task.
that is multiple tasks try to access a shared resource should not be allowed.

what is this?
 

9 More Discussions You Might Find Interesting

1. Solaris

Monitroing Critical Logs

Hi, What are the critical logs need constant monitoring ? thanks (2 Replies)
Discussion started by: sol8admin
2 Replies

2. Shell Programming and Scripting

Very Critical

We have a batch job which runs and checks for certain files on a server and retrieves them to our server. But from last few hours the job is not running correctly. It gives msg file now found when there are files present on the server.. Nothing has been changed.................. (1 Reply)
Discussion started by: shikhakaul
1 Replies

3. HP-UX

ServiceGuard on HP-UX 11.23 Mission Critical

Dear(s), anybody have played ServiceGuard on HP-UX version 11.23 MC ? I am planning to install Oracle and OpenView Operations for Unix 8 on a ServiceGuard clustered HP-UX environment, any suggestionsfrom where should I start ? Best Regards, Mostafa Reda (1 Reply)
Discussion started by: darousha
1 Replies

4. UNIX for Advanced & Expert Users

Shared Libraries- CRITICAL !!

Hi, I am trying to create a shared library from a .c file using gcc -c -fpic -I/usr/local/include Chksum.C -o Chksum.o gcc -shared -o libtclcksum.so Chksum.o when i try to load this shared library libtclcksum.so in tclsh % load libtclcksum.so I get the following error: couldn't load... (1 Reply)
Discussion started by: archana485
1 Replies

5. Shell Programming and Scripting

Critical problem in merging lines

Hi all, I am having a very critical problem in merging lines in my file as, let my file contents are: cat test1.txt name1....... address1....... phone1...... <blank> name2...... address2..... phone2..... <blank> and so on. Now i have to merge these lines by which my desired output... (2 Replies)
Discussion started by: shadow25
2 Replies

6. AIX

How critical is this info,from syslog?

Hello Gurus I have a linux box which is trying to connect to HOST-1 via ssh.Recently i have been submitted following entries from 'syslog' from this HOST-1. As you can see,there are 3 failed login attempts logged for my user 'eatcid' coming from my linux box to this HOST-1 which is AIX.The... (4 Replies)
Discussion started by: ak835
4 Replies

7. Shell Programming and Scripting

Extract section of file based on word in section

I have a list of Servers in no particular order as follows: virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection). 9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
Discussion started by: jelloir
2 Replies

8. UNIX for Advanced & Expert Users

Critical lib renamed

Hello I have moved a critical lib from its location, so all programms linked to libc dont work . I still have two shells on the machine, bash and ksh The only thing I see is copying back the lib, but of course : dd, cp , mv etc are dead . So i tryed a loop with read ... {^Jwhile read... (24 Replies)
Discussion started by: remi75
24 Replies

9. Shell Programming and Scripting

Prepend first line of section to each line until the next section header

I have searched in a variety of ways in a variety of places but have come up empty. I would like to prepend a portion of a section header to each following line until the next section header. I have been using sed for most things up until now but I'd go for a solution in just about anything--... (7 Replies)
Discussion started by: pagrus
7 Replies
Ns_Master(3aolserver)					   AOLserver Library Procedures 				     Ns_Master(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_MasterLock, Ns_MasterUnlock - Enter and leave the single master critical section lock SYNOPSIS
#include "ns.h" void Ns_MasterLock(void) void Ns_MasterUnlock(void) _________________________________________________________________ DESCRIPTION
The single master critical section lock is used throughout the core server to protect portions of code from being run by more than one thread at a time. These are convenience functions which actually make calls to Ns_CsEnter and Ns_CsLeave to perform the locking and unlock- ing function. You should not use these functions in your modules. To protect critical sections in your modules you should create and initialize your own named locks, then wrap your critical sections with calls to Ns_CsEnter and Ns_CsLeave. Ns_MasterLock() Enter the single master lock. The thread that holds this lock is guaranteed exclusive access to the section of code that follows the call to Ns_MasterLock. Other threads that attempt to enter the master critical section while another thread owns the master lock will block until the owning thread releases the master lock. Be extremely careful with code you place within the master critical section. If the thread that owns the master lock blocks for any reason while in the master critical section, other threads that need to enter that section of code will block until the master lock is released. Ns_MasterUnlock() Leave the single master critical section. The thread that owns the lock must release it after the critical section of code has com- pleted so that other threads may execute the critical section code. SEE ALSO
nsd(1), info(n), Ns_CsEnter(3), Ns_CsLeave(3) KEYWORDS
AOLserver 4.0 Ns_Master(3aolserver)
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy