






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







โโ 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.