LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2012, 01:31 AM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
Semaphores allocation with IPCS


Hi to all;

1.Can semaphore allow two different process at a time?
2. Is there any Max limiy ?

I am trying to find how semaphores prevents two different processes at a time as well as checked semaphore array no's.
I updated two tables sententiously. Here , semaphores allowed two process updating table con currently.

1. Can anyone clear my confusion ?
Semephore allocated same arrays for two different processes but linux says semaphore allocates different arrays for each process. but in ouput not found different arrays.

PHP Code:
SQLshow user;
USER is "SONY"
SQLupdate tab3 set name='SONY';
200000 rows updated
PHP Code:
SQLshow user;
USER is "SONA"
SQLupdate tab4 set name='SONA';
200000 rows updated
>> Before UPDATE THE TABLE >>

PHP Code:
[oracle@localhost ~]$ ipcs

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0xc2da0d04 458763     oracle    640        287309824  19

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0xd5f61564 229376     oracle    640        154

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages 
>> When updating tables >>
PHP Code:
[oracle@localhost ~]$ ipcs

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0xc2da0d04 458763     oracle    640        287309824  19

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0xd5f61564 229376     oracle    640        154

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages 
>> After Updated the tables>>
PHP Code:
[oracle@localhost ~]$ ipcs

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0xc2da0d04 458763     oracle    640        287309824  19

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0xd5f61564 229376     oracle    640        154

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages 
BEFORE , CURRENT , After ( table updation) why ipcs showing same
address here ?


Regards
Thiyagusham .G
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCS in linux thiyagusham Linux - Newbie 2 11-20-2012 10:57 AM
[SOLVED] C - Semaphores, initiate semaphores seems to be failing golmschenk Programming 3 06-28-2010 09:32 PM
ipcs nagavinodh Linux - Newbie 4 05-05-2010 03:09 AM
What is IPCS? housemusic42 Linux - Server 1 02-27-2007 03:45 PM
ipcs output ku2006 Linux - General 2 04-26-2006 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration