tb22
Quiz von , erstellt am more than 1 year ago

CSSE4004 - Lecture 2

44
0
0
tb22
Erstellt von tb22 vor mehr als 9 Jahre
Schließen

CSSE4004 - Lecture 2

Frage 1 von 13

1

A file is a fixed resource

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 2 von 13

1

Which of these are true?

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 3 von 13

1

Why would you use a thread over a process?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 4 von 13

1

What is a solution to "a target machine may not be able to execute original code" in the context of code migration

Wähle eine der folgenden:

  • Interpreted languages running on a virtual machine

  • Passing the code by reference

  • Dynamically reconfiguring the target system

  • Using a cloud computing platform instead

Erklärung

Frage 5 von 13

1

It is possible to migrate a fastened resource

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 6 von 13

1

What is the purpose of interceptors

Wähle eine der folgenden:

  • 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

Erklärung

Frage 7 von 13

1

Which of these is an accurate description of a thread?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 8 von 13

1

How can threading improve performance for clients?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 9 von 13

1

Which of these is not a reason to use code migration?

Wähle eine der folgenden:

  • Reduce communication

  • Continue when disconnected

  • Dynamically deploy components

  • Because .NET is only supported on Windows platforms

Erklärung

Frage 10 von 13

1

Which of these is not a reason to use code migration?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 11 von 13

1

Switching between threads is more expensive than switching between processes

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 12 von 13

1

What are core OS functions?

Wähle eine der folgenden:

  • Process, thread, communication and memory management

  • Process, thread, reliability and memory management

  • Security, IPC, threading and recovery

  • Concurrency, resource isolation, communication and memory management

Erklärung

Frage 13 von 13

1

Which of these are true about single threaded servers?

Wähle eine oder mehr der folgenden:

  • 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

Erklärung