View on GitHub

Computer Architecture and Operating Systems

Course taught at Faculty of Computer Science of Higher School of Economics

Lecture 1

Introduction and Motivation

Lecture

Slides (PDF, PPTX).

Outline

Workshop

Outline

Tasks

Notes

VirtualBox

Some laptops might have issues with hardware virtualization. It should be enabled in BIOS. If you face problems running the VM, please refer to this instruction.

Connecting to the running VirtualBox VM
  1. Run terminal in your host operating system (Git Bash for Windows).
  2. Execute the following command:
    ssh acos@localhost -p2022
    
  3. Use the password acos2020.
Bash Commands

Information on useful Linux and MacOS command-line tools can be found here.

Git and GitHub

Notes on how to work with GitHub and Git can be found here.

Example

For example, a MacBook with the following configuration:

Model Name:                 MacBook Pro
Model Identifier:           MacBookPro9,1
Processor Name:             Quad-Core Intel Core i7
Processor Speed:            2,3 GHz
Number of Processors:       1
Total Number of Cores:      4
L2 Cache (per Core):        256 KB
L3 Cache:                   6 MB
Hyper-Threading Technology: Enabled
Memory:                     8 GB

gives these results:

(base) Andreis-MacBook-Pro:01_Introduction andrew$ javac Matrix.java
(base) Andreis-MacBook-Pro:01_Introduction andrew$ gcc matrix.c -o matrix
(base) Andreis-MacBook-Pro:01_Introduction andrew$ gcc matrix_ikj.c -o matrix_ikj
(base) Andreis-MacBook-Pro:01_Introduction andrew$ gcc matrix_jki.c -o matrix_jki
(base) Andreis-MacBook-Pro:01_Introduction andrew$ python3 matrix.py
503.130450
(base) Andreis-MacBook-Pro:01_Introduction andrew$ java Matrix
12.946224373000002
(base) Andreis-MacBook-Pro:01_Introduction andrew$ ./matrix
13.714264
(base) Andreis-MacBook-Pro:01_Introduction andrew$ ./matrix_ikj 
2.739385
(base) Andreis-MacBook-Pro:01_Introduction andrew$ ./matrix_jki 
19.074106

Homework

Homework is successful if:

  1. GitHub account is created.
  2. Table with execution time is uploaded to GitHub.
  3. Cloud VM account is created.

References