Ovido
Language
  • English
  • Spanish
  • French
  • Portuguese
  • German
  • Italian
  • Dutch
  • Swedish
Text
  • Uppercase

User

  • Log in
  • Create account
  • Upgrade to Premium
Ovido
  • Home
  • Log in
  • Create account

Computer Science

Give 4 primitive data types

string
integer

float

character

boolean

What are tuples

An ordered set of values, which are immutable (elements in the tuple can't change)

What do records usually represent

spreadsheets

What's the difference between a static and dynamic data structure

- Static structures cannot change size

- Dynamic structure can grow and shrink in size

What is an abstract data type

A logical description of how we view data and possible operations, we're only concerned about what the data represents & not how it's constructed

What is a Queue

An abstract data type that holds an ordered, linear sequence of items

Give features of a queue

- It is a first in first out structure
- The first element to be added to the queue is the first to be removed

-New elements are added to the rear of the queue

- When an element is removed the rest of the elements don't take up the empty space

- To keep the order of the queue you need need to mantain a pointer at the back & front of queue to indicate the back & front of queue

Give examples of real life Queues

-Queue to a till
-Download/Updating queue

-Printer queue

Give the functions and methods of queues

enQueue - Add an item to the rear
deQueue - Removes and returns an item from the front

isEmpty - Indicates if the queue is empty

IsFull - Indicates if the queue is full

What does a scheduler manage

- What process to execute next
- The length of the time the next process can execute for

Give 3 things scheduling aim to do

- Providing an acceptable response time to users
- To maximize the time the CPU is usefully engaged

- To ensure fairness on a multi-user system

- Ensures hardware resources are kept as busy as possible

What is round robin

Where each job is given a time slice within which it runs. Once the job has used it's time slice, it's give another slice until it's completed

Give advantages and disadvantages of round robin

Advantages - All processes get a fair share of the CPU
- Predictable, as each job isgiven the same amount of time

Disadvantages - Longer jobs take long to be completed

- It doesn't take job priority/urgency into account

- Choosing the right time slice is difficult

What does SRT do

Serves jobs with the least time needing to be completed first

Give advantages and disadvatages of SRT

Advantages - Throughput is increased as shorter processes can be quickly completed

Disadvantages - Doesn't take job priority or urgency into account

What does shortest job first do

Orders job with based on their time required to be completed

What is pre-emptive scheduling

Scheduling that allows processes currently running to be interrupted

What is Non pre-emptive scheduling

Where processes cannot be interrupted, it must finish its process.

Define a stack

An abstract data type that holds an ordered linear sequence of items

Give features of a stack

- It's a Last in First out structure
- To implenent a stack you need to maintain a pointer to the top of the stack(Last to be added)

Give the methods and functions of a stack

Push - adds data to the top of the stack
Pop - Removes an element from the top of the stack

Peek - returns a copy of the element on the top of the stack without removing it

IsEmpty - Checks if the stack is empty

IsFull - Checks if a stack is at max capacity when stored in a static structure

What is overflow and underflow

Overflow attempts to push onto a full stack

Underflow attempts to pop an empty stack

What happens when a stack is implemented using a dynamic structure

The computer may give a stackover flow error when it runs out of memory

Define 'Starvation'

Large processes can remain at the back of the queue forever

How does a multi-feedback queue work?

Uses priority levels. If a job uses too much CPU time it is moved to a lower priority queue

Define FCFS (First Come First Served)

A type of scheduling which proritizes jobs which arrive first to be processed

Give advantages and disadvantages of FCFS

Advantages: - Easy to understand
- Fair in the sense that the are processed in the order they arrive

Disadvantages: Doesn't take job priority into account

- Can lead to poor performance if a large process arrives before a shorter process

Give advantages and disadvantages of MLFQ

Advantages - Smaller tasks are prioritized
Disadvantages - More complex than other algorithms

Give advantages and disadvantages of SJF

Advantages - Efficient and fast for short processes
- Minimises waiting time

Disadvantages - Requires knowing the burst of time process es in advance

Quiz
UE7-Paléoanthropologie: aux origines de l'Humanité
Franska prepositioner
4.1 (Frans naar Nederlands)
Computer Science
Cell Biology 25 (Manual flashcards)
Cell Biology 25
Computer Science
Philo
Apah africa people-artworks
temptations
missouri laws
B1
A321-200
Katakana Combination Quiz
anouk
4 kirja
french
science review A
W&S
Socio
Les vêtement Par Sylvia Duckworth
marketing
Vocab
TLE
Cognition 2
Quiz - système lymphatique et immunitaire
Quiz au sujet du sang et le coeur
EXPH exam 2
Elliot Sokoloski
espagnol
bb
Ali
Nk
gabby
history in gaza
history conflict in gaza
komparerade adjektiv
Chapter 12- The Heart
adjektiv B
adjektiv A
Chapter 4 health science
deklination 4
grupp 15 nominativ singular till genitiv singular
deklination 3 grupp 15
deklination 3 grupp 9
deklination 3 grupp 8
deklination 3 grupp 7
deklination 3 grupp 4
deklination 3 grupp 3
deklination 3 grupp 1