有像windows这样的linux消息结构吗? [英] Has linux message structure like windows?

查看:108
本文介绍了有像windows这样的linux消息结构吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道windows系统编程。在Windows中,我们可以实现所有进程间通信(IPC)方法,如DDE,剪贴板,管道,邮件槽,......和消息传递。我在某处看到Windows有基于消息的结构。在Windows中,每个进程都有一个消息队列,它可以包含任何关于IPC方法之一的消息。

基于linux消息是否像我解释的关于windows的东西?我可以拦截linux中的消息吗?

解决方案

在Linux上,与所有其他类Unix操作系统一样,带消息传递的窗口子系统基于X Window: http://en.wikipedia.org/wiki/X_Window_System [ ^ ]。



现在,特定系统可能不包括X Window系统,以及基于它的其他子系统。 Unix和Linux并不固定。此外,特定的Linux发行版也不是任何特定窗口子系统配置的指示,可能会有所不同;例如,Ubuntu服务器没有它,并且桌面Ubuntu的变体更喜欢不同的桌面环境;即使已经安装了一些发行版,也可以在以后更换桌面环境。



特定系统是许多可选组件的叠加,例如X-Window,一个桌面环境,例如GNOME,KDE或Unity 。请参阅:

http://en.wikipedia.org/wiki/Desktop_environment [< a href =http://en.wikipedia.org/wiki/Desktop_environmenttarget =_ blanktitle =New Window> ^ ]。



这些层不属于任何特定的Linux发行版,但由许多层共享。同时,不同的发行版提供不同的这些图层集,通常提供可选的功能集。



-SA

大多数人犯的常见错误。 Windows是os的名称,也是发行版的名称。在Linux世界中更清楚的是,例如Ubuntu是Linux OS的发行版。有几种可用的消息传递实现。看一下wiki:

http://en.wikipedia.org/wiki/Event_loop #Xlib_event_loop [ ^ ]



祝你好运!


简答:不, Linux 有相同的消息基础设施 Windows 提供。另一方面, Linux 确实提供了许多 IPC 设施。


Hi,
I know windows system programming. In Windows, we can implement all Inter-process Communication(IPC) methods like DDE, Clipboard, Pipe, Mailslot,... with messaging. I read somewhere that windows has message-based structure. In windows, every process has a message queue that it can contain any messages about one of the IPC methodes.
Is linux message-based like something that I explained about windows? Can I intercept messages in linux?

解决方案

On Linux, as on all other Unix-like OS, windowed sub-system with messaging is based on X Window: http://en.wikipedia.org/wiki/X_Window_System[^].

Now, a particular system may of may not include X Window System, as well as other sub-systems based on it. Unix and Linux is not anything fixed. Also, a particular Linux distro also is not the indication of any particular windowed sub-system configuration, which may vary; for example, Ubuntu server does not have it, and there are variations of desktop Ubuntu preferring different desktop enviromnents; even if some distro is already installed, the desktop environment can be later replaced.

A particular system is the superposition of a number of optional components, such as X-Window, a desktop environment on top of that, such as GNOME, KDE or Unity. Please see:
http://en.wikipedia.org/wiki/Desktop_environment[^].

These layers do not belong to any particular Linux distro but are shared by many of them. At the same time, different distro provide different sets of those layers and typically offer the optional sets of features.

—SA


The common mistake most people make. Windows is the name as the os and also of the distribution. In the linux world is is more clear that for example Ubuntu is a distribution of a Linux OS. There are several implementations for messaging available. Have a look at the wiki:
http://en.wikipedia.org/wiki/Event_loop#Xlib_event_loop[^]

Good luck!


Short answer: no, Linux has not the same message infrastructure Windows provides. On the other hand, Linux does provide many IPC facilities.


这篇关于有像windows这样的linux消息结构吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆