Notes, summaries, assignments, exams, and problems for Computers

Sort by
Subject
Level

Computer Architecture Fundamentals: CPU, Memory, Buses, and Addressing

Classified in Computers

Written on in English with a size of 3.52 KB

Core Computer Architecture Components

CPU Registers Explained

CPU registers are small, high-speed storage locations within the central processing unit (CPU) that hold data and instructions for immediate processing.

Accumulator Register

The Accumulator Register stores the results of executed operations. It connects to input registers for feedback in chained operations and also connects to the data bus for sending results to main memory or the control unit.

Program Counter (PC)

The Program Counter (PC) stores the memory address of the next instruction to be executed.

Instruction Register (IR)

The Instruction Register (IR) contains the instruction currently being executed.

Understanding Computer Buses

A bus is a channel or set of parallel connections that... Continue reading "Computer Architecture Fundamentals: CPU, Memory, Buses, and Addressing" »

Software Architecture Design: UML Concepts & Layered Systems

Classified in Computers

Written on in English with a size of 2.54 KB

Software Architecture Design Principles

Key aspects of software design include:

  • Software Architecture Design: Defines the major structural components of the software and their relationships.
  • Project Data Design: Involves designing the data structure needed to implement the software.
  • Procedural Design: Refines and details the procedural description of the structural components defined in the software architecture.
  • Interface Design: Describes how software communicates internally (internal interfaces), with other systems (external interfaces), and with users (user interface).

Component vs. Class Diagrams in UML

Similarities

  • Both can realize a set of interfaces.
  • Both can participate in various relationships (dependency, generalization, association).
  • Both
... Continue reading "Software Architecture Design: UML Concepts & Layered Systems" »

CPU Operations: Interrupts, I/O, DMA, and Multiprogramming

Classified in Computers

Written on in English with a size of 4.94 KB

Program Counter (PC) and Instruction Register (IR)

The Program Counter (PC) contains the address of the instruction to be read. The Instruction Register (IR) contains the last statement read.

Interrupts

Interrupts interrupt the normal execution of the processor. They appear mainly as a way to improve processing efficiency. Interrupts can be generated by software, clock, I/O, or hardware failure.

Disabled Interrupts

Disabled interrupts mean that the processor will ignore the interrupt signal. If an interruption occurs during that time, it generally will remain pending and will be checked by the processor after it enables interrupts.

Processor Actions

When the processor interprets the instruction and performs the action, the action can be classified... Continue reading "CPU Operations: Interrupts, I/O, DMA, and Multiprogramming" »

Computer System Components and Features

Classified in Computers

Written on in English with a size of 3.16 KB

Computer System Components and Definitions

Perform = realizar || Word processor = procesador de textos || Built-in = incorporado || Store = tienda || Financial = financiero

Keep, save = mantener, guardar || Execute, do = ejecutar, hacer || Monetary = monetario || Connected to the internet = conectado a internet || Program used for text manipulation = programa para manipular texto || Copy files from a server to your PC or mobile = copiar archivos de un servidor a PC o móvil

Perform operations = realizar operaciones || Do research = hacer la investigación || Carry out transactions = llevar a cabo transacciones

Monitor = monitor || Keyboard = teclado || Printer = impresora || Scanner = escáner || Speakers = altavoces || Fan = ventilador || Processor

... Continue reading "Computer System Components and Features" »

Essential Number Properties and Divisibility Rules

Classified in Computers

Written on in English with a size of 4.22 KB

Fundamental Number Concepts

Prime Numbers Up to 97

Here is a list of prime numbers up to 97:

  • 2
  • 3
  • 5
  • 7
  • 11
  • 13
  • 17
  • 19
  • 23
  • 29
  • 31
  • 37
  • 41
  • 43
  • 47
  • 53
  • 59
  • 61
  • 67
  • 71
  • 73
  • 79
  • 83
  • 89
  • 97

Rules for Exponents

Understanding how exponents work is crucial for various mathematical operations:

  • Positive Base: If the base (m) is positive, the result (b) of mn = b is always positive.
  • Negative Base, Even Exponent: If the base (-M) is negative and the exponent (n) is an even number, the result (+b) of (-M)n = +b is positive.
  • Negative Base, Odd Exponent: If the base (-M) is negative and the exponent (n) is an odd number, the result (-b) of (-M)n = -b is negative.

Powers of Decimal Numbers

Here are examples of squaring and cubing decimal numbers:

  • 1.12 = 1.21
  • 0.42 = 0.16
  • 0.032 = 0.0009
  • 0.23 = 0.008

Divisibility Criteria

Divisibility... Continue reading "Essential Number Properties and Divisibility Rules" »

Programming Language Basics & Database Models

Classified in Computers

Written on in English with a size of 3.29 KB

Programming Language Fundamentals

Level Classification

  • Low Level: Resembles the language used by the computer directly.
  • High Level: Resembles human language, abstracting machine details.

Generations of Programming Languages

  • 1st Generation (1GL): Machine Language
  • 2nd Generation (2GL): Assembler
  • 3rd Generation (3GL): High-level languages (e.g., Fortran, Pascal, C, C++, Cobol)
  • 4th Generation (4GL): Languages for specific purposes (e.g., web development, PHP, Java, HTML)

Key Programming Concepts

Program

A set of instructions or orders based on a programming language that a computer interprets to solve a problem or perform a specific function.

Programming Language

Tools that allow us to create programs and software. An artificial language used to define a sequence... Continue reading "Programming Language Basics & Database Models" »

Semaphores for Synchronization in Operating Systems

Classified in Computers

Written on in English with a size of 3.35 KB

Semaphores: Synchronization Tool

Semaphores are a synchronization tool designed to solve critical section and synchronization problems. A semaphore is an integer variable accessed only through two atomic operations: Wait and Signal. When a process modifies the semaphore's value, no other process can simultaneously modify that same semaphore value. The semaphore is initialized to a non-negative value.

Wait and Signal Operations

  • Wait (P): Decrements the semaphore's value. If the value becomes negative, the process is blocked.
  • Signal (V): Increments the semaphore's value. If the value is not positive, a blocked process waiting on this semaphore is unblocked.

The definitions are:

P(s):

while (s <= 0)
s--;

V(s):

s++;

Operating System Usage

Operating... Continue reading "Semaphores for Synchronization in Operating Systems" »

Device Communication: Controllers and Functions

Classified in Computers

Written on in English with a size of 3.5 KB

Key Functions of Device Communication

The main functions related to device communication are:

  • Sending commands to devices.
  • Detecting interrupts.
  • Handling errors.
  • Providing a simple and easy-to-use interface between devices and the rest of the system. This interface should ideally be the same for all devices, regardless of their specific type.

Device Categories

Human-Readable Devices

Used for communication with the user:

  • Printers
  • Graphic display terminals
  • Displays
  • Keyboards
  • Mice

Machine-Readable Devices

Used for communication with electronic equipment:

  • Disk and tape drives
  • Sensors
  • Controllers
  • Actuators

Communication Devices

Used for communication with remote devices:

  • Digital line drivers
  • Modems

Device Types

Devices fall into two broad categories:

  • Block devices
  • Character
... Continue reading "Device Communication: Controllers and Functions" »

Database Architecture Fundamentals: Models and Components

Classified in Computers

Written on in English with a size of 2.54 KB

Client Module Functions

The Client Module usually runs on a workstation or personal computer. Normally, application programs and user interfaces that access the database run on the client module.

Server Module Responsibilities

The Server Module typically manages storage, access, data mining, and other essential database functions.

Understanding the Data Model

A fundamental characteristic of the database approach is that it provides some level of data abstraction by hiding storage details that most users do not need to know. A Data Model is:

  • A collection of concepts used to describe the structure of a database.
  • The means to achieve data abstraction.

Database Structure Components

The structure of a database refers to the data types, relationships, and... Continue reading "Database Architecture Fundamentals: Models and Components" »

Secure Internet Connections: SSL, PGP, PPTP, and IPsec

Classified in Computers

Written on in English with a size of 2.93 KB

Secure Sockets Layer (SSL)

Secure Sockets Layer (SSL) is most often used to encrypt information on the Internet. It is a protocol that encrypts database (DB) connections by selecting an encryption method and generating the necessary keys for the entire session.

How SSL Works

  1. The browser requests a page from a secure server. The request is identified by the HTTPS protocol.
  2. They agree on algorithms that ensure confidentiality, integrity, and authenticity.
  3. The server sends the browser its standard X509 certificate containing its public key. If the application requires it, it in turn requests the client's certificate.
  4. The browser sends the server a master key from which it generates the session key to encrypt data to be exchanged.
  5. Finally, it checks the
... Continue reading "Secure Internet Connections: SSL, PGP, PPTP, and IPsec" »