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

Sort by
Subject
Level

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" »

Fundamental Digital Logic Gates: Operations and Equations

Classified in Computers

Written on in English with a size of 4.24 KB

Fundamental Digital Logic Gates

A logic gate is an electronic device that serves as the physical expression of a Boolean operator in switching applications. Each logic gate comprises a network of switching apparatus designed to satisfy the specific Boolean conditions for its particular operator. Essentially, these are switching circuits integrated onto a chip.

Claude Elwood Shannon conducted experiments using relays or electromagnetic switches to achieve the conditions required for each logic gate. For instance, the Boolean function Y (AND) is implemented using switches placed in series circuit, because if even one switch is in the "open" state, the gate output Y will be 0. Conversely, to implement an OR gate, the switches are configured in a

... Continue reading "Fundamental Digital Logic Gates: Operations and Equations" »

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" »

Network Integration Models and Access Methods

Classified in Computers

Written on in English with a size of 2.8 KB

Models of Network Integration

Typically, a network encompasses a wide range of technologies. Not all technologies meet all the needs of the network administrator. A network of a certain size is usually a mixed-technology network due to the various factors involved.

Key Aspects of Network Integration:

  • Wiring System Response: The wired network forms the backbone of any Local Area Network (LAN). Typically, all servers have at least one connection to the wiring harness, and if they handle substantial traffic, the connection is high-speed. Clients can connect to services through a structured cabling network or wireless connections. Note that the bandwidth of a wireless access point is generally less than that of wired Ethernet access and is shared

... Continue reading "Network Integration Models and Access Methods" »

PowerPoint Essentials: Interface, Features, and Presentation Modes

Classified in Computers

Written on in English with a size of 3.19 KB

Benefits of Microsoft PowerPoint Presentations

Create professional slideshows that can include charts, drawing objects, text, multimedia, animations, and transitions, among other elements.

PowerPoint Fundamentals and Interface

How to Start PowerPoint

To start PowerPoint, navigate to the taskbar, select Programs, then Microsoft Office, and finally PowerPoint.

Understanding the PowerPoint Interface

Once PowerPoint has launched, the screen displays a window containing the menu bar and various tools.

The Menu Bar

The menu bar provides common menus such as File, Edit, View, Insert, Format, Window, and Help.

Key Presentation Menu Commands

The Presentation menu contains several important commands and actions:

  • Presentation: Starts the full-screen slideshow from
... Continue reading "PowerPoint Essentials: Interface, Features, and Presentation Modes" »

Fundamentals of Integers, Primes, and Factorization

Classified in Computers

Written on in English with a size of 8.67 KB

Chapter 1: Fundamentals of Numbers

Numbers and Notation

We begin by talking about numbers. This may seem rather elementary, but it does set the scene and introduce a lot of notation. In addition, much of what follows is important in computing.

1.0.1 Integers: Definition and Properties

We begin by assuming you are familiar with the integers:

Ecuacion

Sometimes called the whole numbers, these are just the numbers we use for counting. To these integers we add zero (0), defined as:

Ecuacion

Once we have the integers and zero, mathematicians create negative integers by defining (-n) as the number which, when added to n, gives zero. So, n + (-n) = (-n) + n = 0. Eventually, we simplify writing n + (-n) = 0 to n - n = 0. We now have the set of positive and negative integers:... Continue reading "Fundamentals of Integers, Primes, and Factorization" »

Essential Data Structures and Runtime Concepts Explained

Classified in Computers

Written on in English with a size of 2.47 KB

B-Trees

B-trees are tree data structures commonly found in database and file system implementations. Unlike standard binary search trees, each node in a B-tree can have more than two children.

Binary Trees

A binary tree is a data structure where each node has at most two children: a left child and a right child. If a child reference is null, it is called an external node; otherwise, it is an internal node.

Hashing Functions

Hashing refers to a method used to generate keys that uniquely represent documents, records, or files. A hash is the result of this function. A fundamental property of hashing is that if two results are different, the inputs that generated them must also be different. Note that collisions can occur, as the range of possible keys... Continue reading "Essential Data Structures and Runtime Concepts Explained" »

Workshop Workload and Production Capacity Management

Classified in Computers

Written on in English with a size of 3.82 KB

Workshop Planning and Control

Planning

Planning aims to coordinate workload with available resources and equipment to perform the required services in production, or the quantity and quality required, at the lowest cost and meeting the deadline.

Organization

Methods, order, time > budget OR > acceptance > delivery term.

Workload

The workload is the amount of work available for the workshop, consisting of the OR already issued and accepted by clients.

Production Capacity

Production capacity is the amount of work that the workshop can perform based on available operators, equipment, and facilities.

The workload can be defined in a working or time to implement and scale, or are uncertain about working with an open OR work involving a diagnostic... Continue reading "Workshop Workload and Production Capacity Management" »