a*****3 发帖数: 10373 | 1 X Window System是用 C/S Architecture. 譬如,
Computer1 是 X Server
Computer2 是 X Client, which connects to Computer 1.
1.X Server 有 keyboard/mouse/display 等hw的information.但这些 information是
Computer2 还是 Computer1的呢?
2.最终谁把display buffer flush到hardware (eg. /dev/fb0) 的? 如果是X Server,
那它怎样能够control remote computer2的hardware呢? 我认为应该是由X Cilent来负
责,但好象又有点不对. |
a*******e 发帖数: 3021 | 2 用俺的半瓶醋来讲, x server没有hw信息,hw信息应该是kernel管, x server只管啥
interface来啥请求? xserver当然是用的server端的硬件了
xserver控制不了remote computer2的硬件,remote的硬件是client得xserve管理
是
【在 a*****3 的大作中提到】 : X Window System是用 C/S Architecture. 譬如, : Computer1 是 X Server : Computer2 是 X Client, which connects to Computer 1. : 1.X Server 有 keyboard/mouse/display 等hw的information.但这些 information是 : Computer2 还是 Computer1的呢? : 2.最终谁把display buffer flush到hardware (eg. /dev/fb0) 的? 如果是X Server, : 那它怎样能够control remote computer2的hardware呢? 我认为应该是由X Cilent来负 : 责,但好象又有点不对.
|
a*****3 发帖数: 10373 | 3 你是说,在computer2也有一个xserver在run吗?这样不就变成:
xclient (computer2) -> xserver (computer2) -> xserver (computer1)
每个xclient都有一个local xserver? X Window System应该不是这样design的吧?
【在 a*******e 的大作中提到】 : 用俺的半瓶醋来讲, x server没有hw信息,hw信息应该是kernel管, x server只管啥 : interface来啥请求? xserver当然是用的server端的硬件了 : xserver控制不了remote computer2的硬件,remote的硬件是client得xserve管理 : : 是
|
a*******e 发帖数: 3021 | 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I believe it is true.
【在 a*****3 的大作中提到】 : 你是说,在computer2也有一个xserver在run吗?这样不就变成: : xclient (computer2) -> xserver (computer2) -> xserver (computer1) : 每个xclient都有一个local xserver? X Window System应该不是这样design的吧?
|
r****t 发帖数: 10904 | 5 我 ft
【在 a*******e 的大作中提到】 : 用俺的半瓶醋来讲, x server没有hw信息,hw信息应该是kernel管, x server只管啥 : interface来啥请求? xserver当然是用的server端的硬件了 : xserver控制不了remote computer2的硬件,remote的硬件是client得xserve管理 : : 是
|
r****t 发帖数: 10904 | 6
是
X server 在哪个机器上,它的 hw information 就是哪个机器上的,xserver 又不是
神仙。
should be x client. you need to read the code to know.
【在 a*****3 的大作中提到】 : X Window System是用 C/S Architecture. 譬如, : Computer1 是 X Server : Computer2 是 X Client, which connects to Computer 1. : 1.X Server 有 keyboard/mouse/display 等hw的information.但这些 information是 : Computer2 还是 Computer1的呢? : 2.最终谁把display buffer flush到hardware (eg. /dev/fb0) 的? 如果是X Server, : 那它怎样能够control remote computer2的hardware呢? 我认为应该是由X Cilent来负 : 责,但好象又有点不对.
|
a*****3 发帖数: 10373 | 7 OK, after intensive study. Finally I understand the X Client/Server architecture. Actually it is quite simple and it is stated in wikipedia clearly but if you don't get it, even a simple thing becomes complicated.
The major thing confusing me is the term of the server/client in X. It is actually different to the traditional concept.
- In the traditional, the server is the service provider and the client is the console/machine where the user (person) is sitting in front of and displays the output |
r****t 发帖数: 10904 | |
a*****3 发帖数: 10373 | 9 Really? It means it should be an easy question then. However, I have to figure it out by myself. Maybe people here think it is too simple and don't care about it.
【在 r****t 的大作中提到】 : 这个也可以算是月经问题,过阵子还会有人问的。
|