Photo from Varsitarian
If the earthquake originates from the Manila Trench (a fault line that runs off western Luzon, from Ilocos to Mindoro), a tsunami 2 meters to 4 meters high may hit the Manila Bay area one hour after. The Old Manila area—including low areas with elevation less than 4 meters such as that in Malacañang and Pandacan—will be hit. –Manila Times
I was listening yesterday to a radio interview where they discussed about the possibility of a tsunami hitting Manila. They say it’s possible and could cause a lot of damage and that we are not prepared for such kind of event. Then I remembered this photo of UST’s attempt to create the largest human cross. It didn’t only showed the largest human cross, it also showed just how far we are from the Manila bay. It’s not that far guys. :o
Filed under: UST | Closed
Chapter6
Chapter 6 Physical Database Design and Performance
Chapter Overview
This chapter presents the basic steps that are required to develop an effective physical database design. Physical database design is very important since it immediately impacts those factors that are important to the end user: data integrity and security, response times, user friendliness, and so on. First, we present a simple approach to estimating the volume of data in a database, as well as the probable data usage patterns. Next, we discuss issues associated with defining fields, including data type determination, coding and compression techniques, controlling data integrity, and handling missing data. We then discuss designing physical records and include an expanded section on denormalization. Vertical and horizontal partitioning are covered next. We describe the basic file organizations and the trade-offs that are typically involved in selecting a file organization. We examine the use of indexes and have added bitmap indexes to this section. File access performance is discussed, including a new discussion of RAID technology. The chapter concludes with a comparison of available database architectures. The chapter continues to emphasize the physical design process and the goals of that process.
Filed under: Uncategorized | Closed
Chapter5
1. Define each of the following terms:
a. Determinant The attribute on the left-hand side of the arrow in a functional dependency.
b. Functional dependency A constraint between two attributes or two sets of attributes.
c. Transitive dependency A functional dependency between two (or more) nonkey attributes.
d. Recursive foreign key A foreign key in a relation that references the primary key values of that same relation.
e. Normalization The process of decomposing relations with anomalies to produce smaller, well-structured relations.
f. Composite key A primary key that consists of more than one attribute.
g. Relation A named, two-dimensional table of data.
h. Normal form A state of a relation that results from applying simple rules regarding functional dependencies (or relationships between attributes) to that relation.
i. Partial functional dependency A functional dependency in which one or more nonkey attributes (such as Name) are functionally dependent on part (but not all) of the primary key.
j. Enterprise key A primary key whose value is unique across all relations.
k. Surrogate primary key: A serial number or other system assigned primary key for a relation.
Filed under: Uncategorized | Closed
15b
ADDITIONAL PROBLEMS
46
At the start of a trip, a driver adjusts the absolute pressure in her tires to be
when the outdoor temperature is 284 K. At the end of the trip she measures the pressure to be
. Ignoring the expansion of the tires, find the air temperature inside the tires at the end of the trip.
47
ssm A young male adult takes in about
of fresh air during a normal breath. Fresh air contains approximately 21% oxygen. Assuming that the pressure in the lungs is
and air is an ideal gas at a temperature of 310 K, find the number of oxygen molecules in a normal breath.
48
A frictionless gas-filled cylinder is fitted with a movable piston, as the drawing shows. The block resting on the top of the piston determines the constant pressure that the gas has. The height h is 0.120 m when the temperature is 273 K and increases as the temperature increases. What is the value of h when the temperature reaches 318 K?
49
Review Conceptual Example 7 before working this problem. For water vapor in air at 293 K, the diffusion constant is
. As outlined in Problem 44(a), the time required for the first solute molecules to traverse a channel of length L is
, according to Fick’s law. (a) Find the time t for
. (b) For comparison, how long would a water molecule take to travel
at the translational rms speed of water molecules (assumed to be an ideal gas) at a temperature of 293 K? (c) Explain why the answer to part (a) is so much longer than the answer to part (b).
50
Initially, the translational rms speed of a molecule of an ideal gas is 463 m/s. The pressure and volume of this gas are kept constant, while the number of molecules is doubled. What is the final translational rms speed of the molecules?
51
ssm Suppose that a tank contains 680 m3 of neon at an absolute pressure of
. The temperature is changed from 293.2 to 294.3 K. What is the increase in the internal energy of the neon?
52
A tank contains 0.85 mol of molecular nitrogen (N2). Determine the mass (in grams) of nitrogen that must be removed from the tank in order to lower the pressure from 38 to 25 atm. Assume that the volume and temperature of the nitrogen in the tank do not change.
*
53
ssm Estimate the spacing between the centers of neighboring atoms in a piece of solid aluminum, based on a knowledge of the density (2700 kg/m3) and atomic mass (26.9815 u) of aluminum. (Hint: Assume that the volume of the solid is filled with many small cubes, with one atom at the center of each.)
*
54
The pressure of sulfur dioxide (SO2) is
. There are 421 moles of this gas in a volume of 50.0 m3. Find the translational rms speed of the sulfur molecules.
*
55
Interactive Solution 14.55 at provides a model for problems of this type. The temperature near the surface of the earth is 291 K. A xenon atom
has a kinetic energy equal to the average translational kinetic energy and is moving straight up. If the atom does not collide with any other atoms or molecules, how high up would it go before coming to rest? Assume that the acceleration due to gravity is constant throughout the ascent.
**
56
When perspiration on the human body absorbs heat, some of the perspiration turns into water vapor. The latent heat of vaporization at body temperature (37 °C) is
. The heat absorbed is approximately equal to the average energy
given to a single water molecule (H2O) times the number of water molecules that are vaporized. What is
?
**
57
A spherical balloon is made from a material whose mass is 3.00 kg. The thickness of the material is negligible compared to the 1.50-m radius of the balloon. The balloon is filled with helium (He) at a temperature of 305 K and just floats in air, neither rising nor falling. The density of the surrounding air is 1.19 kg/m3. Find the absolute pressure of the helium gas.
Copyright © 2007 John Wiley & Sons, Inc. All rights reserved.
Filed under: Uncategorized | Closed
Review!
- Jeffrey A. Hoffer, Mary B. Prescott,
- Fred R. McFadden
- Objectives
- Definition of terms
- Importance of data modeling
- Write good names and definitions for entities, relationships, and attributes
- Distinguish unary, binary, and ternary relationships
- Model different types of attributes, entities, relationships, and cardinalities
- Draw E-R diagrams for common business situations
- Convert many-to-many relationships to associative entities
- Model time-dependent data using time stamps
Filed under: Uncategorized | Closed
Chapter 3
Traps and Interrupts
Modern OS are known a s being interrupt driven. This simply means that there is no processes or programs to execute, no I/O devices to service and users to whom to respond, an operating system will quietly sit and wait for something to happen.
Trap – is an indicative of an abnormal condition sensed by the CPU, which usually means that an error has occurred.
This error may be in the form of
- division by zero
- access to an invalid or non – existing memory location
- access to a restricted memory location
- execution of an undefined code
- access to a non – existing peripheral device
In the occurrence of both interrupt and trap the CPU responds by suspending the current. It saves or preserves all the values pertinent to the suspended program such as the value of the program counter, register, memory location of the last line of code executed etc.
After saving the process, it transfers control to an INTERRUPT HANDLER or INTERRUPT SERVICE ROUTINE which determine the appropriate course of action to be taken in response to the interrupt. When the Interrupt Routine has completed it task, the CPU resumes operation to the interrupted/ temporarily suspended task.
Two types of Interrupt
- Software Generated – takes the form of traps which execute a special operation known as system call or monitor call.
- Hardware Interrupt – take the system bus route to send the signal from the I/O devices to the CPU.
I/O structure input and output operation is implemented using the following techniques.
- programmed I/O – the simplest method to implement I/O operation is done through programmed I/O. this method is done by copying the data from the user space to the kernel to avoid a more complex operation should the access be done at the user level. After the data is copied to the kernel the operating systems begin to output the data. For example to an output device like the printer, one character at a time. This loop of fetching from the kernel and sending the character to the output device is the essence of programmed I/O
Polling – process of querying I/O devices to verify the capacity of the device to accept data ready transmission.
Kernel – a part of the Operating system that includes frequently used portions of the software.
- Interrupt Driven – enhanced version of the programmed I/O. As stated earlier, I/O devices trigger a hardware interrupt from the I/O device to the CPU. This process of issuing an interrupt “frees the CPU from its busy waiting status and work on another process. As soon as the device is again ready for the next character input the CPU is interrupted or suspends the current process in order to attend to the next character input needed by the device..
- Direct Memory Access (DMA) – this is an enhance of the interrupt driven I/O
because it assigns the work of outputting data to a DMA controller instead of generating an interrupt every time a character is outputted
Process Management
Is the fundamental task of an operating system. Most authors also believe that the central concept in any modern Operating System is undoubtedly the concept of Process.
Process – a program in execution (active entity)
Program – set of instructions. (passive entity)
Process State Models
- two state process model
“ as a process execute, it changes its state. The current activity of a process party is a state. A process actually a cycle of CPU execution (CPU burst) and (I/O burst). Usually there is a large number of short CPU burst or there is a small number of long CPU bursts. An I/O bound program would typically have many very short CPU burst. A CPU – bound program might have a few very long CPU burst.
A process generally includes the
A. process stack – containing temporary data (such as sub routine parameters, return addresses and local variables
B. data section – containing global variables.
- Three State process Model
- running – a process that is currently using the CPU
- ready – runnable but is on hold until CPU is available
- blocked – unable to run until an external event occurs.
- Five State process Model
- New – the process is being created
- Running – The CPU is executing its instruction
- Waiting – the process is waiting for some event to occur
- Ready – the process is waiting for the OS to assign a processor to it
- Terminated – the process has finished execution
Process Creation and Termination
Process creation can be summarized into four principal events
- System Utilization – when the computer is booted up, processes are created in the computer system like the loading process..
Foreground process – interact with human users through the system interface
Background process –executes without the users knowledge. Like a process to accept email. Such process is dormant until it is triggered by the coming of an email
- Process Spawning by an executing process – when a process is executing it may
Issue a process creation system call which will create another process as requested. This is a classic example of a help me process wherein the purpose of the process to be created is to help the summoning process.
- User Request to create new process – this process creation event originates in an Interactive or time sharing system. A user creates a process using the input devices of the computer system.
- Initiation of a batch job – this fourth event is found on batch systems of large
mainframes. Since jobs are submitted in bulks, as the soon as the OS sees that the required resources for the next job in the input queue is available it then creates
another process to execute the job.
Process Termination according to stallings are terminated by any of the following events
- Normal Completion – a process issues a system call that it has finished its work. An example is a compiler which has finished compiling a particular program
- Time limit exceeded – this means that a process exceeds its time limit. Like in the email process, if there are no inputs or interaction from the user for some amount of time then the process is deactivated to resume or reactivate the terminated process would require a login
- Memory unavailable – there is insufficient memory than what is being required by a process
- bound violation –the process tries to access a restricted memory location.
- protection error – the process attempts to access a restricted resource / file or uses it in an improper fashion
- arithmetic error – the process performs illegal computation such as division by zero
- time over run – occurs when a process has to wait more than the maximum time for an event to take place.
- I/O failure – occurs when an error is encountered in an I/O device.
- Invalid Instruction – the process tries to execute a nonexistent instruction
- privileged instruction – occurs when the process attempts to execute an instruction reserved for the OS alone.
- data mis-use – happens when data is of the wrong type or not initialized.
- operator or Os intervention – OS terminates a process if a deadlock occurs
- parent termination – when a parent terminates its offspring are tagged along
- parent request – a parent process is authorized to terminate any of its offspring process.
Process Implementation
Each process is represented in the operating system by a process control block(PCB). A PCB is a data block record containing many pieces of the information associate with a specific process including
- process state
- program counter – indicates the address of the next instruction to be executed for this process
- CPU registers – includes accumulators, index, registers, stack pointers , and general purpose registers
- CPU Scheduling Information – this information includes a process priority, pointers to scheduling queues and any other scheduling parameters
- memory management information – this information includes limit registers or page tables
- accounting information – this includes the amount of the cpu and real time used, time limits, account numbers, job or process numbers and so on.
7 I/O status information – this information includes outstanding I/O request , I/O devices allocated to this process, a list of open files, and so on.
Chapter 4
CPU scheduling
CPU schedulers – whenever the CPU becomes idle, the operating system must select one of the processes in the ready queue for execution. CPU scheduling may take place under the following four circumstances
- when a process switches from running state to the waiting state
- when a process switches from the running state to the ready state
- when a process switches from the waiting state to the ready state
- when a process switches from the ready state to the running state
CPU scheduling algorithms – different CPU algorithms have different properties and may favour one class of processes over another. The characteristics used for comparison can make substantial difference in the determination of the best algorithm.
- CPU utilization – this measures how busy is the CPU
- throughput – this is a measure of work (number of processes competed per time unit
- turnaround time – this measure how long it takes to execute a process. Turnaround time is the interval from the time of submission to the time of completion. It is the sum of the periods spent waiting to get into memory. Waiting in the ready queue , executing in the CPU and doing I/O.
- waiting time – total amount of time a process spends waiting in the ready queue
- response time – the time from the submission of a request until the system makes the first response. It is the amount of time it takes to start responding but not the time it takes to output that response..
Filed under: Uncategorized | Closed
DBMS QUIZ 1 LAB
DBMS LAB
Quiz 1 (IM201L lab)
|
Stud No |
Lname |
Fname |
Middle |
Course |
Tuition |
|
123456 |
Ambrocio |
Ria |
A. |
BCDPM |
750 |
|
234567 |
Austria |
Elias |
A. |
BSIT |
30000 |
|
345678 |
Reyes |
Shalaine |
H. |
BSCS |
23000 |
|
456789 |
Nayre |
Rachele |
A. |
BSN |
45000 |
|
567890 |
Morales |
Mario |
R. |
BSHRM |
56789 |
|
678901 |
Pagalilawan |
Alfred |
B. |
BLIS |
23940 |
|
789012 |
Andres |
Florante |
D. |
BSIT |
34500 |
|
890123 |
Luna |
Anton |
S. |
BA |
45678 |
Filed under: Uncategorized | Closed
Recent Entries
Categories
- 2ITC (7)
- blogging (3)
- eng'g (6)
- Events (9)
- Mobile App (3)
- Movies (6)
- Music (1)
- Notes (1)
- personal (15)
- school (2)
- Technology (16)
- TV (1)
- Uncategorized (25)
- UST (33)









