ZDNet UK


Skip to Main Content

  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Videos
  6. Jobs
  7. Resources
  8. Community

 

ZDNet UK RSS Feeds


Desktop platforms Toolkit in association with http://ad.doubleclick.net/clk;205413468;14699245;m?http://adfarm.mediaplex.com/ad/ck/2397-58840-22058-14

Windows XP: under the bonnet

Rupert Goodwins ZDNet.co.uk

Published: 30 Oct 2001

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Windows XP is not a revolutionary product. Rather, it builds on existing code and incorporates many features that have previously been available across different platforms. It also adds some ideas from applications software. The kernel is substantially the same as that in Windows 2000, which is itself a substantial reworking of NT 4.0: Windows 2000 has proved itself to be a stable OS, and that stability could be endangered by too many changes.

The XP kernel gets going a lot faster than previous versions, as the boot sequence has been streamlined. As well as remembering what happened during the last boot -- and thus knowing when it's safe to omit diagnostic tests -- the kernel optimises the sequence in which it starts up peripherals, loads files from disk and initialises drivers and protocols. In many cases, it can load multiple components in parallel and start them running without having to wait for previous components to finish their initialisation, and can pre-fetch drivers from disk to be in memory before they are required. XP remembers details of the previous eight boot sequences and knows to stop pre-fetching files that are no longer required, or to modify the sequence when new drivers are added. A utility -- bootvis.exe -- gives a graphical view of what processes are doing what and when during boot.

Much the same technique is used when XP loads an application. It remembers what system resources are required, such as registry entries, DLLs, chunks of EXE files and so on, and loads as much as possible into memory as soon as possible. It also defragments the disk during idle times and moves application components around to group them for swift loading. This fine-tuning goes on continually.

XP also tries hard to optimise memory usage. Like all modern operating systems, it manages virtual memory, which copies the least-used contents of real memory to hard disk, freeing up RAM for other uses, and copying back data into the RAM when the application wants it. Managing this efficiently is vital to system performance, and previous versions of Windows could be less than stellar here. XP's memory manager constantly monitors RAM usage and is aggressive about releasing memory if it looks as though an application isn't using it. XP also maintains two pools of memory, one for small allocations and one for large ones, to prevent multiple small requests fragmenting memory space for large requests and thus reducing efficiency.

Low memory situations -- which for most Windows users means most situations -- are handled with more aplomb. Older versions of the operating system supported 'must succeed' memory requests, whereby a driver or kernel code could force the OS to hand over memory. If there wasn't enough free memory for the request, the system could become unstable and deliver the dreaded 'blue screen of death'. XP doesn't support 'must succeed' requests, and it's now up to software writers to sort out what to do if there's not enough memory for their task. XP also supports 'hot-add' memory: if your hardware is compatible, you can add memory to your computer without turning off and it becomes available to the OS there and then.

When suspending to disk, XP first makes sure all unused memory is released, so it won't be saved, and then compresses used RAM before storing it. By compressing one block while writing another, the whole process is speeded up.

XP's device driver model is much the same as with Windows 2000, although the perennially problematic Plug and Play system has been yet further fine-tuned to make it more reliable -- or so Microsoft says. I/O in general has been reorganised, with the system allocating as much spare memory as possible to allow different I/O requests to complete in parallel. When memory is low, XP throttles back by serialising I/O requests, allowing greater memory reuse at the expense of speed.

Application compatibility has been the subject of some attention. Windows monitors the way an application uses the operating system API, and will automatically work round a number of errors that happen when the application mistakes the OS version. Additionally, Windows XP can disguise itself as an earlier version of Windows -- you can pick ME, 98, 95, NT 4.0 or Windows 2000 modes on an application-by-application basis. And if that's not good enough, Windows XP can store old DLLs and other OS library components in the WinSxS (Windows Side by Side) folder. If an application relies on an old DLL but a newer version is part of the operating system, XP will spot this and divert DLL calls as appropriate to the old version while leaving the new version in place for other software.

Driver rollback is another feature that improves reliability. Here, when a driver is updated the old version is archived in a special directory and can be reinstated if any problems are found with the new version. Rollback only works for the immediately previous driver, and doesn't work for printer devices. Some other system features introduced in Windows ME have been updated -- automatic updating over the Web, system checkpointing and restoring back to earlier configurations, and Automated System Recovery (ASR) can save and restore applications, including their Registry entries.

The Registry itself has been substantially overhauled. Size limitations have been removed and it's now limited by available hard disk space. Appropriately, its database engine has been improved to speed things up: related items are grouped together so that accesses are faster, and fragmentation is reduced by a more intelligent space allocation algorithm.

Very little of the above will be immediately apparent to the user. However, if Microsoft has been successful in its aims Windows XP should feel slicker, crash far less often and almost never get in the way of useful work. That might not seem glamorous, but for an operating system one of the highest accolades you can bestow is to hardly notice it's there.

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Did you find this article useful?
22 out of 48 people found this useful


Full Talkback thread

0 comments

New Products

Windows 7: a first look

Windows 7: a first look

Microsoft has finally unveiled Windows 7: here are our first impressions of the next Windows, direct from the Professional Developers Conference.

Illustrator CS4: a first look

Illustrator CS4: a first look

The ability to handle multipage projects finally provides a reason for users of older versions to update to Illustrator CS4.

Dreamweaver CS4: a first look

Dreamweaver CS4: a first look

Designers and editors who use Dreamweaver for complex dynamic web sites will find plenty of tweaks for editing code more easily within its WSIWYG interface.

Flash CS4 Professional: a first look

Flash CS4 Professional: a first look

The latest version of Adobe's Flash Professional reinvents the process of animation creation, and streamlines its workspace.

View all Previews

Video icon

Latest Video

Microsoft Futures

Windows 7: Mixed reviews from PDC attendees

As developers received their copies of Windows 7 on Tuesday, they offered varied reactions to the Microsoft operating system update More

Microsoft floats clouds on Windows Azure

At the Professional Developers Conference, Microsoft announced the Azure Services Platform, the company's cloud-computing platform More

Ozzie: Success of Azure comes down to trust

In an interview, Ray Ozzie says businesses will be taking a risk by placing core operations in Microsoft's datacentre, but that the software giant has more to lose if things go bad More

Win a Yoggie Gatekeeper Card Pro and Compaq notebook

Win a Yoggie Gatekeeper Card Pro and Compaq notebook

How many security software applications are found in a Gatekeeper Card Pro?

Competition closes - 22 Jan 2009

Desktop Management Benchmarking

Test Your Desktop Management Systems

How good are your company's desktop management solutions? How do they compare with those of your peers?

Take two minutes to complete our new Desktop Management and Energy Consumption benchmark, and find out what issues your business needs to focus on.