CSE 445 Midterm

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What architecture best supports integration based on code migration?

Distributed object architecture.

What topics will this course focus on?

Distributed-Software Architecture Distributed Computing

What architecture model does not belong to the families of the distributed object architectures implemented in COBRA or DCOM?

ESB (Enterprise Service Bus)

What statements best describe the architecture-driven approach?

Elaborating the architecture design into executable top-down approach

What entity does not belong to the three-party model SOC software development?

End user of software.

What system is truly based on a vendor-independent standard?

Enterprise service bus (ESB)

What is the main function of the IIS worker process?

Executing Web services and Web applications as its threads.

if you write a program to search a UDDI service broker, what UDDI pages do you search?

Green Pages

When designing a computer system, if you improve one part of the system, and you also impove the other parts proportionally, the best performance law you can use is

Gustafson's Law

What communication protocol is used for accessing RESTul services?

HTTP

What protocol in the web service protocol stack is normally in the layer directly below the SOAP protocol?

HTTP

What is the common interface language used in COBRA to facilitate the communication among objects written in different programming languages?

IDL

What is the standard language in COBRA that is used for defining the interface between distributed objects?

IDL

What is the proper way of creating a thread class if the class has already inherited members from another class?(java)

Implement the Runnable Interface

Where does the database normally reside in the fat-client architecture?

In the server layer.

What is the role of distributed software architecture in a distributed system?

It describes how the application functionality is distributed over the logical components.

What method in the C# is used to move one thread from the "wait" state to the "ready" state?

Monitor.Pulse(...);

What method in C# can be used if the calling thread does not want to be blocked, even if the object to be accessed is locked by another thread?

Monitor.TryEnter(...);

One of the impacts of SOA/SOC paradigm is that...

More software engineer jobs will be available.

Given a piece of code: int x =2; Monitor.Enter(x); try {x = x+1;} finally {Monitor.Exit(x);} What will happen?

No error will occur, but Montor.Enter method does not protect variable x at all.

Can Monitor.Enter(v) lock the variable v if v is of integer type? (c#)

No, Monitor.Enter(v) cannot directly lock the variables of value-type.

In distributed architecture, what component is called the software bus?

Object request broker.

What is a major difference between object-oriented development and service-oriented development?

One development cycle vs. three development parallel cycles.

List software Architectures we have talked about.

Pipe and filter Blackboard

What is the unique feature of service-oriented computing paradigm that does not exist in other computing paradigm?

Platform-independent.

The impacts of service-oriented computing include...

Programmers do not have to understand application domain. Shorter software development cycle.

What is the main function of the Web Administration Service (WAS) in IIS?

Register Web services and Web applications into the registry.

What communication protocol is directly used by WSDL web services for transferring data?

SOAP

What protocol is normal used for transferring data between web services?

SOAP

What is "not" in the process of application building in the SOA style?

Service implementation.

ebXML is a standard for...

Service registry and service repository.

UDDI is primarily a standard for...

Service registry only.

What layer does not belong to the traditional three tier architecture?

Service repository.

What computing paradigm will this course focus on?

Service-Oriented Computing.

A design pattern refers to...

Software pattern

What is the efficiency of a multi-core computer?

Speedup / NumberOfCores

How is a synchronous call implemented in the Intel TBB library?

The caller calls the Promise function in TBB library and block-waits for the Promise function to return the result.

What would happen if a "WaitOne" request is called when the semaphore value is zero?

The calling thread will be blocked.

What problems occurred in the first two attempts when scaling up the number of threads in the Collatz conjecture case study?

The impact of the data structures dominated the performance. The thread execution times were different, which reduced the benefit of parallel computing

What is the main difference between the monitor pair (Monitor.Wait, Monitor.Pulse) and the coodination event pair (event.WaitOne, event.Set)?

The monitor pair involves an object, while the coordinatopm event pair does not.

How is a new (child) process created in the Unix operating system programming environment? (java)

Use a system call fork( ), followed by a system call execvp(. . .).

How is a C# semaphore used for regulating the operating system's processes?

Use the same semaphore name in all processes.

In a Java multithreading program, if a thread class is defined by "myThreadClass implements a Runnable", how can I craete a thread?

Use: Thread t = new Thread(new myThreadClass(2));

XML is...

a Meta language that can be used to define another language.

Event-driven programming is typically implemented by

a callback from the object or thread where the event is generated

If a method is prefixed with the keyword "synchronized", then (java)

all objects accessed by the method will be locked during the execution of the method.

A C# delegate...

allows a method name to be passed as a parameter. allows the same method call to be associated with different method codes

A C# delegate

allows different methods to be added into a container and to be called through the container.

In a C# multithreading program, the method that starts a thread

can be in the main class or in another class.

Intel's HyperThreading design duplicates

control unit in the processor

Coordination events in C# are used for

defining the order of execution among the threads.

In a multithreading implementation of the Collatz conjecture, the efficiency exceeds 100%. The reason is the use of...

different array sizes in different threads.

If you want to create a standard service broker with both service directory and service repository, what standard would you use?

ebXML

The lock(...) method in C# does not need to use try-finally exception handling, because

exception handling is implied.

What type of values does the Unix system call fork( ) return?

int

A thread in a distributed program...

is a piece of program being executed exists when the corresponding code is running.

The binding template in UDDI

links a businessService in UDDI to an implementation of the service

In service-oriented computing, the building blocks of software systems are services which are...

loosely coupled.

Given the bufferClass between a producer and a consumer in Java, as shown in the figure: Class bufferClass { private int temp = -1; private boolean writable = true; public void setBuffer(int val) { synchronized (this) { while (!writable) { try { wait(); } catch (InterruptedException e) { System.err.println("Exeption: "+e.toString()); } } //end while temp = val; writable = false; } notify(); } } 1) What synchronization mechanism is used in the given code? 2) What is the function of the variable "writable"? 3) What is the function of the statement "notify( )"? 4) What is the function of the synchronized mechanism in the code?

1) synchronized statements 2) Define the order of accessing the object 3) Move a thread from wait to ready state 4) Lock the object during the execution of the method

How is the monitor mechanism implemented in C#?

A SyncBlock index is stored in everey object, and the index is used to access the corresponding entry of the SyncBlock table.

How is the synchronization mechanism implemented in a Java environment?

A lock-bit in an object is set to "true" when a synchronized method accesses the object.

What does the "operation" in WSDL file correspond to in object-oriented computing?

A method.

In contrast to objects in object-oriented development, service-oriented development has these distinct features:

A service has a language-independent interface. A proxy to the service is created in the application.

BPEL is primarily...

A specific language at a process/workflow level

Compare and contrast wait( ) and sleep(t) methods defined in the library class Thread. (java)

A thread in the wait state cannot return to the ready state unless another thread issues a notification.

What is the key feature of blackboard Architecture?

All components communicate through a central component.

What law you should use in evaluating the system performance improvement if you have doubled the processor speed, but kept the other parts of the system unchanged?

Amdahl's Law

What would happen if a "release" call is made when the semaphore count is at its max value?

An exception will occur.

Java Enterprise Edition applications are based on a 4-tier architecture, which includes...

Business tier Client tier

What architecture is strictly a tiered architecture?

Client-server architecture.

Multi Tenancy is a key concept in...

Cloud Computing

The design pattern specifically deals with the problems of...

reusable solution at the level of software design.

The C# method lock( ) is used for synchronizing...

selected statements, similar to the synchronized statements in Java.

The C# monitor class's methods Monitor.Enter and Monitor.Exit can be used for

synchronizing a set of statements, similar to the synchronized statements in Java.

The key ideas of Intel's Threading Building Blocks (TBB) library are to covert...

synchronous calls into asynchronous calls nested method calls into flat method calls.

The "businessEntity" data structure in UDDI contains information about

the service provider, and it is called the White Pages of the UDDI.

What is true about a deployed service with the Just-In-Time compilation?

the source code of the service can be redeployed while the service is being accessed. It is slower than pre-compiled code for the first request.

A deadlock can occur in a multithreading program, if...

there exist two threads that require to lock two objects

It involves two operations to lock an object: test the value of a lock and set the value to "true" if the value is false. These two operations have

to be done in a single instruction or two linked instructions.

The code beow shows the withdraw method of a bank account class. public boolean withdraw(long amount) { if (amount <= balance) { long newbalance = balance - amount; balance = newbalance; return true; } else return false; } This code can cause a problem running in a multithreading environment. The problem can be by...

using a lock-mechanism to lock the object.

The process of application building in SOA style includes...

Code-level assembling and binding of components Process level specification

Service-oriented software development achieves the platform-independent computing by...

Creating service proxies in the application.


Kaugnay na mga set ng pag-aaral

American History Chap.12 -Section 2

View Set

Art Through History - South Americas

View Set

Safety Inspection of In-Service Bridges: Chapter 10

View Set

Wk 2 - Practice: Ch. 4, Internal Analysis [due Day 5]

View Set

Casualty Fundamentals Review Questions

View Set

Les questions pour les correspondants

View Set

American Government 120 critical Exercise #1

View Set