Are message queues obsolete in linux?

后端 未结 4 827
渐次进展
渐次进展 2021-01-29 19:38

I\'ve been playing with message queues (System V, but POSIX should be ok too) in Linux recently and they seem perfect for my application, but after reading The Art of Unix Progr

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 19:56

    Yes, I think that message queues are appropriate for some applications. POSIX message queues provide a nicer interface, in particular, you get to give your queues names rather than IDs, which is very useful for fault diagnosis (makes it easier to see which is which).

    Linux allows you to mount the posix message queues as a filesystem and see them with "ls", delete them with "rm" which is quite handy too (System V depends on the clunky "ipcs" and "ipcrm" commands)

提交回复
热议问题