Notes, summaries, assignments, exams, and problems for Computer science
Windows Control Panel: System Configuration & Management
The Windows Control Panel: Your System's Command Center
The Windows Control Panel is your primary tool for configuring both the software and hardware installed on your computer. It organizes utilities into categories for easy access. Here's a breakdown of some key configuration options:
Add Hardware Wizard
This wizard guides you through installing new devices. Typically, you'll need the installation CD provided by the device manufacturer.
Add/Remove Programs (Programs and Features)
This section displays all programs installed on your computer. Select a program to uninstall it. To install a new program, run the installer file. To add or remove Windows features, click on "Turn Windows features on or off."
Network Connections (Network and Sharing Center)
...Shared Memory in IPC: Features and Creation
Common Features of IPC Light Mechanisms
These mechanisms are implemented as a unit and share common features, including:
- All mechanisms have a table whose entries describe their usage. Each table entry has a numerical key chosen by the user.
- Each mechanism has a 'get' call to create a new entry or retrieve an existing one. The parameters of this call include a key and a mask of flags. The kernel searches the table for an entry that matches the provided key.
- If the key is set to
IPC_PRIVATE, the kernel occupies the first free entry. Subsequent calls will return this entry until it is released. - If the
IPC_CREATflag is active in the mask, the kernel creates a new entry if there is no match for the provided key. If bothIPC_CREATandIPC_EXCLflags
SPC Control Systems: Centralized vs. Distributed
SPC Control System
SPC Control System refers to the method of controlling a switching system.
- Centralized SPC Control: If a given processor has direct access to all resources of the node and performs all system functions. This usually means the node has a single central computer (doubled for security).
- Distributed SPC Control: If a processor is in a given state but does not have access to some of the resources and/or is not able to run only some of the functions of the system. In practice, this leads to an existing digital system with a high number of microprocessors that perform the control node as a whole.
Functions of Switching Systems
Switching systems provide power and signaling with user terminals. The user, via the wire pair of the switching...
Intel 8086 Microprocessor Architecture Explained
Introduction to the Intel 8086
The Intel 8086 is a 16-bit microprocessor introduced in 1978 by Intel Corporation. It is a foundational member of the x86 family of processors, which has significantly influenced the development of modern personal computers. The architecture of the Intel 8086 microprocessor is based on the von Neumann model and consists of several key components, including the Arithmetic Logic Unit (ALU), Control Unit, Registers, Bus Interface Unit, and Clock.
Arithmetic Logic Unit (ALU)
The ALU is responsible for performing arithmetic and logical operations on data stored in registers or memory locations. Its capabilities include:
- Adders for addition and subtraction
- Multipliers for multiplication and division
- Logical gates for AND,
Public vs. Private Blockchains: Understanding the Key Differences
1. What is a Public Blockchain?
Public blockchains are open networks that allow anyone to participate. This permissionless nature means anyone can join the network and read, write, or participate in the blockchain.
Public blockchains are decentralized, meaning no single entity controls the network. Data on a public blockchain is secure because it is virtually impossible to modify or alter data once validated on the blockchain.
Features of Public Blockchains:
- High Security: Secured by mining and the 51% rule.
- Open Environment: Open for anyone to join.
- Anonymous Nature: Participants can remain anonymous, enhancing privacy.
- No Regulations: No strict regulations on platform usage.
- Full Transparency: The ledger is publicly viewable, ensuring transparency.
Web Security: Confidentiality, Authentication, and Protection Measures
Web Security
Confidentiality: only authorized users should have access to the data
Authentication: each user must be confirmed to be who they say they are through their digital identity
Authorization: access to the different services must be conditioned by the identity and permissions attributed to each user
Integrity: the data sent must be the same as those received, avoiding manipulation or corruption
Availability: quality or condition of the information to be available to those who must access it.
Security Threats: the security of a network is exposed
Logical Causes:
This is the software that can attack the computer: malware, spam, viruses, programming errors…
Human Causes:
These are users who can damage the system: inexperienced users, hackers,...
Jacobi Method Implementation in Fortran
This section details the implementation of the Jacobi method in Fortran for solving a system of linear equations. The subroutine solucion_Jacobi takes a matrix A, a vector b, and an initial guess X as input, and returns the solution vector X.
Subroutine: solucion_Jacobi(A, b, X)
The subroutine begins with the following declarations and initializations:
use normasinteger, parameter :: Kx = 100real(8), parameter :: tolerancia = 1E-6real(8), allocatable :: X0(:), ERROR(:)real(8), intent(in) :: A(:,:), b(:)real(8), allocatable, intent(out) :: X(:)integer :: i, j, k, nreal(8) :: sum, zero, ek
Where:
Kxis the maximum number of iterations.toleranciais the error tolerance.X0is the previous iteration's solution vector.ERRORis the error vector.Ais the
Computer Hardware and Operating System Fundamentals
Microprocessor
A microprocessor is an integrated circuit with millions of tiny transistors that process instructions and data from memory.
- Clock rate: The microprocessor's speed.
- Number of bits: The amount of data a computer can process at once.
Memory
- RAM: Main memory for temporary data storage.
- ROM: Memory for startup programs and diagnostics.
- Cache: Stores frequently used data for the microprocessor.
Storage
- Hard disk: Device for permanent information storage.
Operating System
The operating system is a set of commands and programs that control basic computer processes and enable other programs to run.
- Manages the microprocessor, coordinating computer work.
- Manages memory and storage systems.
- Provides a user interface.
- Enables communication between applications
C Programming Basics: Examples and Explanations
C Programming Basics
Printing a Message
int main() { print("Hello!!!"); }
Variables and Mathematical Calculations
int main() // Main function
{
int a = 25; // Initialize a variable to 25
int b = 17; // Initialize b variable to 17
int c = a + b; // Initialize c variable to a + b
print("c = %d ", c); // Display decimal value of c
}
Floating-Point Math
int main() // Main function
{
float r = 1.0; // Set radius to 1.0
float c = 2.0 * PI * r; // Calculate circumference
print("circumference = %f \n", c); // Display circumference
}
Arrays
int main() // Main function
{
int p[] = {1, 2, 3, 5, 7, 11}; // Initialize the array
print("p[0] = %d\n", p[0]); // Display what p[0] stores
print("p[3] = %d\n", p[3]); // Display what p[3] stores
p[3] = 101; // Assignment
}