CSSE4004 - Lecture 2

Beschreibung

CSSE4004 - Lecture 2
tb22
Quiz von tb22, aktualisiert more than 1 year ago
tb22
Erstellt von tb22 vor mehr als 9 Jahre
48
0

Zusammenfassung der Ressource

Frage 1

Frage
A file is a fixed resource
Antworten
  • True
  • False

Frage 2

Frage
Which of these are true?
Antworten
  • A server which is aware of which clients have a file cached is stateful
  • Servers which obtain their state from cookies are stateful
  • Stateful servers makes it more difficult to handle failures
  • A stateless server can change its own state without informing clients

Frage 3

Frage
Why would you use a thread over a process?
Antworten
  • Because threads share the address space and therefore have lower overhead to start
  • To provide total isolation between different tasks within a process
  • Because processes can only be used for weak consistency
  • Because threads do not require state saving when interrupted

Frage 4

Frage
What is a solution to "a target machine may not be able to execute original code" in the context of code migration
Antworten
  • Interpreted languages running on a virtual machine
  • Passing the code by reference
  • Dynamically reconfiguring the target system
  • Using a cloud computing platform instead

Frage 5

Frage
It is possible to migrate a fastened resource
Antworten
  • True
  • False

Frage 6

Frage
What is the purpose of interceptors
Antworten
  • To change flow of control and allow additional code to be executed
  • To block unauthorized or excessive RPC traffic
  • To update the code with new versions
  • To support binary encoding

Frage 7

Frage
Which of these is an accurate description of a thread?
Antworten
  • Abstraction of activity within process
  • An isolated task containing an independent address space
  • An abstract task that can be passed between nodes within a distributed system over a network
  • The owner of a process

Frage 8

Frage
How can threading improve performance for clients?
Antworten
  • Hide network latency by reacting to next request while previous being transmitted
  • By migrating the thread to the client machine which is more powerful
  • Because threaded servers perform better with threaded clients
  • It doesn't, threads are vulnerable to blocking execution

Frage 9

Frage
Which of these is not a reason to use code migration?
Antworten
  • Reduce communication
  • Continue when disconnected
  • Dynamically deploy components
  • Because .NET is only supported on Windows platforms

Frage 10

Frage
Which of these is not a reason to use code migration?
Antworten
  • Because I do not trust the code and wish to run it on an isolated system
  • Because the product of the code is larger than the code itself
  • Because the client is much more powerful than the server
  • Because the same code will be used many times over and over time the data produced by the code will exceed the size of the code

Frage 11

Frage
Switching between threads is more expensive than switching between processes
Antworten
  • True
  • False

Frage 12

Frage
What are core OS functions?
Antworten
  • Process, thread, communication and memory management
  • Process, thread, reliability and memory management
  • Security, IPC, threading and recovery
  • Concurrency, resource isolation, communication and memory management

Frage 13

Frage
Which of these are true about single threaded servers?
Antworten
  • Prevents simple scaling to multiprocessor
  • Can only serve multiple concurrent clients if those clients are threaded
  • Generally perform faster by avoiding context switching
  • Does not scale up to serving many clients
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

CSSE4004 - Lecture 3
tb22
CSSE4004 - Lecture 5
tb22
CSSE4004 -Lecture 7
tb22
CSSE4004 - Lecture 8
tb22
CSSE4004 Lecture 1
tb22
CSSE4004 - Lecture 4
tb22
CSSE4004 - Lecture 9
tb22
CSSE4004 - Lecture 6
tb22
CSSE4004 - Lecture 10
tb22
MKTG1501 Quiz
Emily Samuels
Zivilrecht - Streite Sachenrecht
myJurazone