西西河

主题:请教个问题 -- 猫元帅

共:💬31 🌺1 新:
分页树展主题 · 全看首页 上页
/ 3
下页 末页
  • 家园 请教个问题

    WIN2000每次启动时,都要吹嘘自己是“基于NT技术”。

    请问什么是NT技术呀?

    • 家园 开始狂拍砖
    • 家园 这个问题说起来挺复杂。我就长话短说把。

      首先,NT是New Technology的缩写。16位和32位区别主要在于:

      1)内存寻址能力。16位的操作系统只能寻址一兆(0到2的16次方减1)。那么多余一兆的内存怎么使用呢?DOS,WINDOWS 3.X使用了扩展内存和扩充内存的方式来使用一兆以上的内存空间。这好像转轮手枪一样,弹槽不停的转,转到枪筒后面的就可以被发射出去。Win9x的内存管理是32位的,不存在这种“别扭”。Winnt/win2000/XP/2003是纯32位的,不使用任何“把戏”就可以寻址4GB内存。超过4GB怎么办,Intel Xeon有一些“把戏”,可以使32位OS寻址36GB。这对于大型服务器非常重要。64位OS可以寻址0到2的64次方减1,大的不可思议!

      2)硬盘管理。16位的操作系统只能寻址一兆的硬盘单位。如果硬盘为512MB,那么每个硬盘单位(簇)就是512byte。随着硬盘越来越大,簇也越来越大。这使得硬盘效率非常的低,浪费惊人。因为不管如何,最小的文件也要使用一个簇。32位OS就没有这个问题。TB(1000GB)以下的硬盘驾轻就熟。

      3)稳定性。NT开始,OS有了严格的进程保护。Kenel Sapce和User Space开始彻底分离。User Space内的用户应用程序也相互隔离。一个用户应用程序的崩溃影响应该是他自己,不会殃及他人。用户应用程序的崩溃也不会影响到系统核心。用户对系统资源的访问必须通过System call。我们不能直接操作硬件资源。学过Unix的就知道我再说什么了

      以上者三点基本分开了32位和16位以及16/32混合型操作系统。当然,NT还有很多其他的新技术,比如说安全性,占先式多线程,新的驱动程序模式等等等等。

      懒得写了,你们有问题我在一一解释吧!

      • 家园 评论

        一。内存寻址能力。16位的操作系统可以直接访问十六兆而不是一兆,一兆的限制是出于8086实方式,但是在80286保护方式下则不存在。DOS的确只能够直接访问到一兆内存,但是Windows 3.x下的标准模式(也就是286保护模式)可以访问十六兆内存而386增强方式则可以访问到4G内存,这点和后来的Windows 9.x/NT理论上是一样。

        二。硬盘管理。DOS/Windows 3.x使用的是12位或者16位Fat文件系统,该文件系统以簇方式来管理和分配硬盘空间,每簇从512字节到32K字节不等(某些DOS变种存在64K的簇但不是主流),最多可以有接近64K个簇(有一些是内部保留,不能够用的),因此最大卷空间是2G字节。但是随着硬盘越来越大,簇也越来越大(因为簇的数量有限),这使得硬盘效率非常的低,浪费惊人,因为不管如何,最小的文件(哪怕只有一个字节)也要使用一个簇。在Windows 95 OSR2以后,微软提供了32位Fat文件系统,大大放宽了簇的数量限制,这样对应的簇的大小也就可以适当小一些,但是存取效率则是大问题,因为Fat文件系统依靠线性表来处理硬盘分配问题,大的簇数意味着大的线性表,它的性能不可能好。与此相比较,NTFS则完全没有这个问题,因为它使用的是B+树,B+树的效率优势随着数据结构的扩大而愈益明显。

        • 评论
          家园 Enhanced mode in NT?

          Enhanced mode was necessary because DOS did not have the power to access the additional memory Windows needed to run. Windows (from Win3.11to Win98) ran as just another program in DOS, albeit a very powerful program. Fortunately, in the more powerful and later versions of the OS (Windows NT/2000/XP), DOS has been eliminated from the core of the system. As such, Enhanced Mode is no longer applicable for computers using these OSes

          NT's Memory Manager defines a 32-bit virtual address map that spans 2GB to 4GB.The space is split between user-mode application code and data and kernel-mode code and data. Usually, NT assigns the low 2GB (i.e., 0GB to 2GB) of the virtual address space to the user mode; this space is called the user space. NT assigns the upper 2GB (i.e., 2GB to 4GB) of the virtual address space to the kernel mode; this space is called the kernel space. NT does not give applications direct access to the kernel-mode portion of the address space; some versions of NT (e.g., NT Server 4.0, Enterprise Edition) support a switch that changes the virtual address space division to 3GB for the user space and 1GB for the kernel space. The kernel space permanently maps the NT kernel and device drivers, but user-space mapping changes to reflect the process address map of the currently executing thread. For example, if a Microsoft Word thread executes, Word's code and data map into the user space. However, if the scheduler switches to a Lotus Notes thread, the NT Memory Manager updates the user space with Lotus Notes' code and data.

          顺便把硬盘管理再说明一下

          [B][COLOR=blue]NTFS[/COLOR][/B] Windows NT/2000/XP/2003系列Native文件系统
          Recommended minimum volume size is approximately 10 MB. Recommended practical maximum for volumes is 2 TB (terabytes). Much larger sizes are possible.Cannot be used on floppy disks.
          
          File size limited only by size of volume
          
          [B][COLOR=blue]FAT[/COLOR][/B]早期DOS系统,现在大多数数码相机,USB移动盘都使用FAT
          Volumes from floppy disk size up to 4 GB. Does not support domains.
          
          Maximum file size 2 GB. 
          
          [B][COLOR=blue]FAT32[/COLOR][/B]Windos 9.x系列
          Volumes from 512 MB to 2 TB. In Windows 2000, you can format a FAT32 volume only up to 32 GB.Does not support domains.
          
          Maximum file size 4 GB.
          • 家园 回复

            一。Windows 3.x中的386增强方式很类似于Windows NT中的内存管理方式。当然到了Windows NT以后,是没有必要再存在那么多的内存管理方式了。

            二。Windows 3.x-9.x并不只是DOS Shell,因为它们增加了非常多的功能。正如Novell Netware可以运行在DOS之上,但是我们不能够说Novell Netware只是DOS Shell一样。

      • 家园 简单地说WNT就是改进了的VMS,并无太多革命之处

        如进程管理、内存管理、存储管理的很多思想都是从VMS哪里一脉相承来的

分页树展主题 · 全看首页 上页
/ 3
下页 末页


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河