CIS 208 PC Operating Systems

Lectures of Chuck Kelly,
Monroe County Community College

Last update: 9/27/2000
 
 

General Stuff

An operating system (OS) is a "middle-man". Its role is to provide a layer of separation between the PC hardware and the application software or user (See Figure 1 ) and to facilitate user interaction with the hardware. The interaction may be with application software or users. When application software needs to use part of the PC hardware it goes through the OS to gain access. For example when a word processing application needs to print a document, it gains access to the PC’s printer by sending the print requests through the OS.

The OS needs to play "middle-man" because the PC Hardware is in a constant state of change. It would be practically impossible for Application Software developers to keep up with all of the different hardware their software might encounter. By using the OS as a buffer between applications and hardware it is only necessary to change the OS when the PC hardware changes. All of the applications continue to work without modification.

In order to facilitate changes in the hardware the OS has another layer of software separating it from the hardware. This software layer is comprised of Device Drivers. (See Fig. 2).


A device driver is software written to allow the OS to control a particular piece of hardware. Device drivers are typically provided by the hardware manufacturer.

History

The first PC OS is often cited as being PCDOS (Personal Computer Disk Operating System). Actually the proper statement would be, the first OS for the IBM ® PC was PCDOS. The first PC or Personal Computer was not even made by IBM nor did it run DOS. The first commercially produced PC was the Altair. It was sold in kit form in the mid 70’s. Shortly after that, Apple Computer introduced the Apple PC which used an OS called DOS and then ProDOS and then the Macintosh PC which used MacOS. Around 1980 is when IBM built the first PC. The term PC has since become synonymous with the IBM PC and compatible computers.

The first versions of PCDOS were designed for PCs that had 360KB floppy drives, 256K of RAM and no hard drives. Needles to say they were very limited in power when compared with today’s choices.

User Interface

DOS uses a Command Line Interface (CLI). With a CLI the user enters commands for the OS from the keyboard and the OS responds with text messages on the display device. CLIs are typically more difficult to learn and use because they are less intuitive and require the user to memorize commands.

The first PC OS to support a Graphical User Interface (GUI) was Windows ®. Actually, the first versions of Windows were not really an OS. They were GUI front ends for DOS. This means DOS was still the underlying OS and Windows simply presented the user with a different means of interacting with DOS. The earliest versions of Windows were not very popular. Not until Windows 3.0 did the GUI software begin to catch on.

A GUI allows users to interact with the OS by manipulating menus and icons on the display. This is typically done with some sort of pointing device such as a mouse or trackball. Graphical interaction is much more intuitive and therefore easier to learn than CLI software.

Multitasking, Task-switching, and Multithreading

Multitasking is the ability of an OS to run more than one program at the same time. Multitasking is available in two basic flavors: cooperative and preemptive.

In cooperative multitasking the OS gives control to an application and the application is responsible for releasing control back to the OS so the next application can run. If each application is "Well behaved" then all of the applications will appear to be running at the same time. The danger with cooperative multitasking is that while an application is running it has total control of the system. If the running application should crash or fail to return control to the OS then all of the applications and the OS will stop working.  Windows 3.1 uses cooperative multitasking.

Preemptive multitasking is controlled by the OS. Each application is given a small slice of time to run. After an application's time is up the OS interrupts the application and then gives the next application a small slice of time to run. Because the slices of time are small (fractions of a second), and the OS switches between all of the applications very quickly, all of the applications appear to be running at the same time. Preemptive multitasking is safer than cooperative multitasking because the OS controls when each application runs. Windows 9x/NT uses preemptive multitasking. Windows 9x also supports cooperative multitasking to make it compatible with older applications.

Task switching was first introduced in DOS with DOSSIER. Task switching simply places multiple applications in memory at the same time but only one application is actually running. The user can quickly switch between applications without the need of any disk access. In the days when floppy drives were the norm, task switching could greatly increase a user's productivity. Today it has limited usefulness.

Multithreading is a form of multitasking that is contained within a single application. A single application may have its program split into more than one part and these parts may all be running at the same time.

Windows® 9x

Windows 95 was the first GUI OS for the PC that did not require a separate installation of DOS. Several versions of Windows 95 were released with such designations as OSR2 and Rev.C. The latter releases contained various bug fixes and support for new types of hardware. Then came Windows 98 and Windows 98 (Second Edition).

Windows® NT/2000 Professional

Windows NT/2000 Pro is a more stable and robust operating system than Windows 9x however, it is not compatible with all of the older windows applications. It is targeted at the professional user where power and stability are more important that backward compatibility with older applications. The user interface and general operation of NT 3.51 is very similar to Windows 3.1, NT 4.0 looks like Windows 95.

Windows® Me

http://www.microsoft.com/windowsme/guide/default.asp

The newest contender is Windows Me (Millenium Edition). Me is designed for the home user. It promises to be more compatible with older applications than NT/2000 Pro. Me is the successor to Windows 98.
 
 

Windows Details

The Desktop

{Quick tour of the desktop}

Using Print Screen

Examining Objects and Their Properties {Demonstrate on taskbar}

{Demonstrate changing date and time}

Viewing System Properties

{Demonstrate displaying information on the printer port}

{Change the driver for the video card}

Using Online Help

{Demonstrate Windows Help}

Changing Desktop Properties

{Demonstrate}

Adjusting Screen Resolutions

{Demonstrate}

Using Accessibility Options for Employees with Disabilities

{Demonstrate installation and some of the features. E.G. Switch mouse buttons Left-Right}

Managing Drives, Folders, and Files

{Demonstrate}

Changing Your View of Files

{Quickly demonstrate the different ways files can be viewed}

Formatting a Disk

{Explain tracks, cylinders, sectors and clusters}

{Demonstrate a format}

Copying a Disk

{Demonstrate}

{Also demonstrate viewing drive properties}

Shortcuts

{Demonstrate creating and using shortcuts}

(Demonstrate checking the shortcut properties}

Using Find to Locate Files

{Demonstrate}
 
 

Using Windows Explorer

{Demonstrate}

Windows 9x Setup
 

Steps for a new installation:

At times Windows may become unstable and you may be required to re-install it to get a system working again.

Steps for re-installing:

Updating a current installation to point to CAB files:

 If you want to copy the CAB files onto a system that already has Windows 9x installed you will need to update the Registry so Windows will look in the correct place for the CAB files.

Instructions for editing the registry in Win95/98 to change where Windows will look for CAB files.

  1. Open regedit
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup.
  3. In the right pane, next to SourcePath, you'll see the path D:\win95 (or wherever you installed Windows from originally).
  4. Change it to the folder to which you copied the CAB files--right-click SourcePath, select Modify, type the correct path on the Value data line, and click OK.
  5. Reboot your system, and Windows 9x will never complain that it can't find the CD again.


{Demonstrate a Win95 install}

Dual Boot Configuration

Making a Startup Disk {Do this as a class exercise} Testing a Startup Disk Performing an Interactive Boot {Do this as a class exercise} Installing a New Printer {Do this as a class exercise} Using the Print Troubleshooter Plug and Play Mixing legacy devices with Plug and Play devices may cause problems Using Device Manager

{Note! It is important to keep a record of a computer’s configuration.}

{Demonstrate printing configuration settings}

Understanding Serial and Parallel Ports

Device Naming Conventions Device Name Meaning Assigned To LPT1 Line printer 1 First parallel port
LPT2 Line printer 2 Second parallel port
LPT3 Line printer 3 Third parallel port
PRN Printer First printer port (same as LPT1)
COM1 Communications port 1 First serial port
COM2 Communications port 2 Second serial port
COM3 Communications port 3 Third serial port
COM4 Communications port 4 Fourth serial port
AUX Auxiliary device First serial port (COM1)
CON Console unit Keyboard and monitor
CLOCK$ System clock System clock

A: Drive A First floppy disk drive
B: Drive B Second floppy disk drive, or first floppy disk drive (if there is not second drive)
C: Drive C First hard disk drive

NUL Null device Bit Bucket

The Importance of Backing Up Files

Sooner or later every hard disk will fail. Backup Media Things to consider before buying a tape drive. Backup Strategy {Do the Course Lab on tape backups?}

Using Microsoft Backup

{Assignment

Copy the TestBackup directory structure from the CIS208 folder on drive S: to drive C: (Note!, Drive S: is a network drive, you must be logged in to the network as user TLC) . Use Microsoft Backup to backup the directory structure to a floppy disk. Delete the directory structure from drive C:. restore it from the backup. Display the contents of the backup floppy and have your instructor verify your work. }

Using ScanDisk

{Demonstrate using ScanDisk}

Undeleting Files

Files deleted (not in the recycle bin) may be recoverable with the MS-DOS undelete command.

Defragmenting Disks

* Describe disk fragmentation

{Demonstrate}

Checking the Status of a Disk’s Fragmentation

My Computer, Properties, Tools tab

Object Linking and Embedding

Connecting to a Network

peer-to-peer

client/server Direct Cable Connection - Linking two machines together via the serial or parallel ports. USB connections operate at ~2Mbps.

Control Panel, Networks

{Demo installing network components}

Identification tab

The Workgroup names should be the same for easy access. For Direct Cable Connection they must be the same.

{Demonstrate direct cable connection}

{Demonstrate using Find to locate a computer on the network.}


***** Assignment *****

Set up a peer-to-peer network using Windows 9x.     <- Click for details.

 

 


***** Assignment *****

Add the following items to the Start menu:
  Add a CIS208 folder in Accessories.
  Place the following shortcuts in the CIS208 folder:
    C:\windows\command.com
    C:\windows\regedit.exe
    C:\windows\system\sysedit.exe
    C:\windows\telnet.exe

This assignment will be graded! Turn in the following:

  1. A brief written description of the procedure you followed to create the menu entries.
  2. A screen capture similar to the image below. (You should reduce the size of the image so it will fit on one page.)
  3. Have me verify the operation of the menu on your computer and initial your printed image.


The finished result should look something like this:



The Registry

The Registry is a database that contains configuration information about Windows and installed applications. Entries into the registry are performed automatically by Windows and applications and generally, you should not attempt to modify the registry directly. In some cases the registry can become corrupted and interfere with normal system operation. Regedit is a tool included with Windows that is used to view and edit the registry.


***** Assignment *****

Registry Lab     <- Click for details.