Assignment Overview

The Windows Operating Systems family is the most widely used operating system for personal computers. This assignment is about the Windows operating system architecture and functionality. The assignment consists of three questions. Question one is concerned with the Windows operating system architecture, question two covers the message and event handling which is at the heart of an interactive system while question 3 is concerned with resource handling. You need to answer ALL questions. This is an individual piece of work. Please answer questions in full sentences. No bullet points. Put your answers into the provided answer sheet which should have your name and k-number at the top. You must reference any external sources that you have used to derive your answers .

Submit your answer sheet as a WORD or PDF document via CANVAS. There are 30 marks in total. This assignment counts for 15% of the total mark of this module.

Question 1: Windows Architecture – (10 marks)

Describe the general architecture of the Windows operating system. Provide a system diagram and explain the major components of the system. Highlight two innovations in the Windows operating system design. Discuss how the architecture of the Windows system contributed to the success in the market.

Question 2: Windows Event Handling – (10 marks)

The Windows Operating System and applications are event-driven and retrieve messages from message queues. The messages are then further dispatched to the appropriate windows procedures for each open window in an application.

a) Discuss how event-driven systems are beneficial for interactive applications.

b) Take a look at the source code of a WndProc function example below. Analyse how the windows procedure (WndProc) is decoding a WM_COMMAND event message to display a Dialog Box. You also need to describe the role of the parameter variables. Refer to the source code in your description.

CI5250 – Operating Systems Assignment 2/3

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc;
switch (message) { case WM_COMMAND: wmId = LOWORD(wParam); wmEvent = HIWORD(wParam); // Parse the menu selections: switch (wmId) { case IDM_ABOUT: DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); break; case IDM_EXIT: DestroyWindow(hWnd); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code here… EndPaint(hWnd, &ps); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; }

CI5250 – Operating Systems Assignment


    Customer Area

    Make your order right away

    Confidentiality and privacy guaranteed

    satisfaction guaranteed