System V IPC problems


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users System V IPC problems
# 1  
Old 07-31-2009
System V IPC problems

Hi all,

Is there a situation like system assigning same ID's for semaphores and shared memory at the same time.

Ex: When I try to create 10 Shared memory objects with starting key as 0x1500 and 10 semaphore objects with starting key as 0x1234 in the same program. Assume those are not deleted while exting the program. So, we can see those with ipcs command. ipcs listed some of the shared memory objects and semaphores having the same ID's.

Is it a problem of kernel? It it causes problems what type of problems it will cause?

Can we have same ID's for semaphores and shared memory?

Please respond to me.

Thanks in advance
G K Reddy Chinthalapudi
# 2  
Old 07-31-2009
A key used for a semaphore can be used for a shared memory as well.
System may assign same id for both these ipcs.
It is not a problem as we use different syscall to access each type of ipc(shmget,semget)
# 3  
Old 08-04-2009
Thanks

Thank you very much John
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Problems with pipe IPC

I'm currently studying IPC, I have a first program A: Do an exec for B and wait B: Receive through a fifo a string from a third program "C" and have to resend it to A I was thinking to open a pipe in A before the exec, then passing fd to B as an argument if(pipe(fd)==-1){ ... (1 Reply)
Discussion started by: cifz
1 Replies

2. Solaris

errors on Netra-440: "IPC Warning: ipc: tcp_protocol: bad magic number"

I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies

3. Programming

IPC - queue problems

Hi, I´m having a lot of problems when working with message queues, both on HP-UX Systems and Sun Solaris. When we fill a queue with a messages, the system hangs and locks everything that relies on the use of IPC resources. Anyone knows how to eliminate this problem? Thanks, Haroldo Teixeira (2 Replies)
Discussion started by: haroldo
2 Replies

4. Shell Programming and Scripting

Develop 2 IPC System Calls

I need to develop 2 IPC system calls. 1) The first one allows sender to send a message to set of receivers in a single call. 2) The second one allows receiver to receives all message that have been sent to it in a single call Please help me in developing this system calls ....atleast how... (1 Reply)
Discussion started by: Anki
1 Replies

5. Programming

How to Develop a 2 IPC system calls

I need to develop 2 IPC system calls. 1) The first one allows sender to send a message to set of receivers in a single call. 2) The second one allows receiver to receives all message that have been sent to it in a single call Please help me in developing this system calls ....atleast how... (1 Reply)
Discussion started by: Anki
1 Replies

6. UNIX for Dummies Questions & Answers

Posix vs System V IPC quesions

What are the differences/similarities between posix and system V ipc and their mechanisms? also, why is system v only limited to inter-process communication on a single node? thanks (0 Replies)
Discussion started by: jsimpson
0 Replies

7. AIX

system command and threads problems

Hi, my name is German. Im working with an aix over one year and i have developed a PRO*C multithread process that reads commands from a table and execute it in parallel (one command by thread) with a system function call, so depending the process exit code (system return value) , I put a mark... (2 Replies)
Discussion started by: german83
2 Replies

8. UNIX for Advanced & Expert Users

Problems when rebooting the system

Hi ! I am working on a server. We have ABAQUS installed on it. I added a compiler to .env file and added usr/local...../IMSL/... to the path. Then i restarted the computer and I get this error: when I am doing interactive option (Red hat Lunix OS) Start service local Yes/no/Continue? no... (1 Reply)
Discussion started by: dsmv
1 Replies

9. UNIX for Advanced & Expert Users

File system problems

Hi All, I am currently running Linux on a file server. The server starts experiencing problems (slow access, no access). After a shutdown and reboot, the file system is corrupted and requires to run fsck to clean up. Is this signs of a failing hard drive? Ken (2 Replies)
Discussion started by: kmcvey
2 Replies

10. UNIX for Dummies Questions & Answers

Prints Problems on Unix system

We are experiencing printing problems coming from an Unix host. In Feb. 05 we applied patches to the Unix operating system. Shortly the patches were applied we began experiencing problems printing on a IBM 6400 that emulates an Epson printer. When the printing starts we can print about 10 pages and... (1 Reply)
Discussion started by: ddameron
1 Replies
Login or Register to Ask a Question