Docsity

DISTRIBUTED COMPUTING PRINCIPLES AND APPLICATIONS COMPREHENSIVE EXAM SCRIPT VERIFIED QUEST, Exams of Computer Communication Systems

Toggle sidebar
bg1
DISTRIBUTED COMPUTING PRINCIPLES
AND APPLICATIONS COMPREHENSIVE
EXAM SCRIPT VERIFIED QUESTIONS AND
SOLUTIONS GRADED APLUS
โ—โ— What are the goals of parallel computing?
Answer: Increase speed, improve efficiency, and solve large-scale
computations faster.
โ—โ— List three benefits of parallel processing.
Answer: Faster execution time, better CPU utilization, and improved
scalability.
โ—โ— What is the main difference between parallel and distributed
computing?
Answer: Parallel computing uses multiple processors in one machine,
while distributed computing uses multiple computers connected via a
network.
โ—โ— What is multithreading?
Answer: The ability for multiple threads to run concurrently within a
process.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download DISTRIBUTED COMPUTING PRINCIPLES AND APPLICATIONS COMPREHENSIVE EXAM SCRIPT VERIFIED QUEST and more Exams Computer Communication Systems in PDF only on Docsity!

DISTRIBUTED COMPUTING PRINCIPLES

AND APPLICATIONS COMPREHENSIVE

EXAM SCRIPT VERIFIED QUESTIONS AND

SOLUTIONS GRADED APLUS

โ—โ— What are the goals of parallel computing? Answer: Increase speed, improve efficiency, and solve large-scale computations faster. โ—โ— List three benefits of parallel processing. Answer: Faster execution time, better CPU utilization, and improved scalability. โ—โ— What is the main difference between parallel and distributed computing? Answer: Parallel computing uses multiple processors in one machine, while distributed computing uses multiple computers connected via a network. โ—โ— What is multithreading? Answer: The ability for multiple threads to run concurrently within a process.

โ—โ— What is concurrency? Answer: The appearance of multiple tasks running at the same time. โ—โ— What is synchronization in computing? Answer: The control of access to shared resources to avoid errors. โ—โ— What is shared memory? Answer: A method where threads share the same memory space. โ—โ— What is message passing? Answer: A method where processes communicate by sending messages to each other. โ—โ— What are the states of a thread in its lifecycle? Answer: New, Runnable, Running, Waiting/Blocked, and Terminated. โ—โ— What is the purpose of the join() method in threading? Answer: It makes one thread wait for another thread to finish. โ—โ— What is a race condition? Answer: A situation where multiple threads access shared data simultaneously and the output depends on the execution order.

Answer: start() creates a new thread for concurrent execution, while run() is a normal method call for sequential execution. โ—โ— What is a distributed system? Answer: A collection of independent computers working together as one system. โ—โ— What are the characteristics of distributed systems? Answer: Resource sharing, scalability, fault tolerance, transparency, and concurrency. โ—โ— What is resource contention? Answer: A situation where multiple threads compete for limited resources. โ—โ— How can concurrency issues be prevented? Answer: By using synchronization, locks carefully, avoiding nested locks, and minimizing critical sections. โ—โ— What is reliability in distributed systems? Answer: The system continues functioning correctly. โ—โ— What does fault tolerance mean?

Answer: The system continues operating despite failures. โ—โ— What is access transparency? Answer: Users do not need to know the physical location of resources. โ—โ— What is message passing in distributed communication? Answer: Processes exchange messages using operations like Send() and Receive(). โ—โ— What is the publish-subscribe model? Answer: Publishers send messages to topics, and subscribers receive updates on those topics. โ—โ— What is the difference between synchronous and asynchronous communication? Answer: Synchronous communication requires the sender to wait for a response, while asynchronous does not. โ—โ— What is an acknowledgment in communication? Answer: A confirmation message that data was received. โ—โ— What is the purpose of Remote Procedure Call (RPC)?

โ—โ— What is the difference between peer-to-peer and client-server models? Answer: P2P has all nodes equal; client-server has a centralized server. โ—โ— What is middleware in distributed systems? Answer: A software layer between applications and operating systems/networks. โ—โ— What is the Message Passing Interface (MPI)? Answer: A standard framework for parallel programming using message passing. โ—โ— What are the advantages of MPI? Answer: High performance, scalable, efficient distributed computation. โ—โ— What are the challenges of MapReduce? Answer: Straggler nodes, performance bottlenecks, synchronization problems, scalability challenges. โ—โ— What is the purpose of file replication in distributed file systems? Answer: To ensure fault tolerance and availability. โ—โ— What is the difference between Hadoop and Apache Spark?

Answer: Hadoop is disk-based and slower; Spark is memory-based and faster. โ—โ— What is the purpose of semaphores? Answer: To control access to shared resources and prevent conflicts. โ—โ— What is the key idea of parallel computing? Answer: Multiple tasks are executed simultaneously. โ—โ— What is the key idea of distributed computing? Answer: Multiple computers cooperate to complete tasks. โ—โ— What is Parallel Programming? Answer: A programming technique that divides large tasks into smaller independent parts executed simultaneously across multiple processors. โ—โ— What is the goal of Parallel Programming? Answer: To improve speed, efficiency, and performance. โ—โ— What is the Fork/Join Framework in Java? Answer: A framework introduced in Java 7 that uses a divide-and- conquer approach to maximize CPU core usage.

โ—โ— What is a Thread? Answer: A lightweight unit of execution within a process that shares memory/resources. โ—โ— What are the benefits of using Threads? Answer: Improved responsiveness, better concurrent task handling, efficient use of multicore processors, and efficient resource sharing. โ—โ— What is a Deadlock? Answer: A situation where threads wait indefinitely for resources. โ—โ— What are key features of Distributed Systems? Answer: Multiple nodes, resource sharing, appears as one system, and fault tolerance. โ—โ— What is a Client-Server System? Answer: A system where a central server provides services and clients send requests. โ—โ— What is a Peer-to-Peer (P2P) System? Answer: A system with no central server where nodes act as both client and server.

โ—โ— What is Hadoop? Answer: A framework for storing and processing big data using distributed computing. โ—โ— What are the advantages of Hadoop? Answer: Cost-effective, faster processing, handles data diversity, creates multiple copies, saves time. โ—โ— What is Spark? Answer: An open-source distributed processing framework that is faster than Hadoop for many operations. โ—โ— What is the key difference between Hadoop and Spark? Answer: Hadoop uses disk-based processing, while Spark uses memory- based processing for faster computation. โ—โ— What is Scalability in Distributed Systems? Answer: The ability to handle increasing demand and grow with user needs. โ—โ— What is the importance of Communication Models in Distributed Systems? Answer: They ensure scalability, fault tolerance, consistency, efficiency, and interoperability.