Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In my Linux machine, when i run 'ipcs' command, I have the below information listed


 srinivas@srinivas-G41MT-S2:~$ ipcs -a

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x00000000 0          srinivas   600        393216     2          dest         
0x00000000 32769      srinivas   600        393216     2          dest         
0x00000000 65538      srinivas   600        393216     2          dest         
0x00000000 6684675    srinivas   600        393216     2          dest         
0x00000000 131076     srinivas   600        393216     2          dest         
0x00000000 163845     srinivas   600        12288      2          dest         
0x00000000 196614     srinivas   600        393216     2          dest         
0x00000000 229383     srinivas   600        393216     2          dest         
0x00000000 7208968    srinivas   600        262080     2          dest         
0x00000000 7241737    srinivas   600        393216     2          dest         
0x00000000 393226     srinivas   600        393216     2          dest         

------ Semaphore Arrays --------
key        semid      owner      perms      nsems     

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages    

srinivas@srinivas-G41MT-S2:~$ 

I do not understand why even a single application in my system is using Message Queues?

I have so many applications installed and have them running(Ubuntu OS). I used Message Queues in one of my C application to transfer text messages between different threads.

Since I saw this, I have a feeling that Message Queues may not be ideal for data transfer as no one is using them. Is it completely safe to use message queues? Is there any possibility of memory corruption if we do not implement them properly?

share|improve this question
    
Safety-wise I don't think there are any problems using SysV queues. It's just that most people use unix sockets these days. –  Kotte Feb 8 '13 at 13:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.