List specification of your Computer, or Computers if working as Pair/Trio

  • Processor GHz: 7th Gen Intel Core i7 processor with base clock speed of 2.7 GHz.
  • Memory in GB: 16 GB of LPDDR3 SDRAM.
  • Storage in GB: Solid-state drive (SSD) storage 256 GB.
  • OS: Windows 10 Home.

Define or describe usage of Computer using Computer Programs. Pictures are preferred over a lot of text. Use your experience.

  • Input devices: Devices that allow users to input data or commands into a computer, such as a keyboard or mouse.
  • Output devices: Devices that display or output information from a computer, such as a monitor or printer.
  • Program File: A file containing the instructions and data required to run a computer program.
  • Program Code: The instructions written in a programming language that tell a computer what to do.
  • Processes: A program or set of instructions that is currently being executed by a computer's CPU.
  • Ports: A physical interface on a computer that allows communication between the computer and other devices, - such as USB or Ethernet ports.
  • Data File: A file that contains data that can be read or processed by a computer program.
  • Inspect Running Code: The process of examining the code of a program that is currently running on a computer to debug or troubleshoot issues.
  • Inspect Variables: The process of examining the values of variables used in a computer program during runtime to debug or troubleshoot issues.

Complete the network activity, summarize your understanding of fault tolerance.

As well as the true or false questions:Fault tolerance in computer science refers to the ability of a system to continue functioning properly in the event of hardware or software failures. It involves designing systems with redundancy and failover mechanisms to minimize the impact of faults. This can include using redundant hardware components or implementing backup software processes to ensure continuous operation. Fault tolerance is especially important in critical systems where failures can have serious consequences, such as in aerospace or medical applications. Achieving fault tolerance typically requires significant investment and expertise, but can provide substantial benefits in terms of reliability and availability. T||F:

  • True
  • False
  • False
  • True

Parallel and Distributed Computing

  • What is naturally Distributed in Frontend/Backend archeticture? In a frontend/backend architecture, the frontend is naturally distributed because it runs on the user's device, while the backend typically runs on centralized servers or a set of servers in data centers. The communication between the frontend and backend is typically done over the internet, which is a distributed network of interconnected devices and servers.
  • Analyze this command in Docker: ENV GUNICORN_CMD_ARGS="--workers=1 --bind=0.0.0.0:8086". Determine if there is options are options in this command for parallel computing within the server that runs python/gunicorn. The command ENV GUNICORN_CMD_ARGS="--workers=1 --bind=0.0.0.0:8086" sets an environment variable for Gunicorn to start with only one worker process. This command does not have options for parallel computing within the server that runs Python/Gunicorn, as only one worker process is specified to handle incoming requests.
import ray

def square(x):
    return x * x

ray.init(ignore_reinit_error=True)

@ray.remote
def square_list(nums):
    return [square(num) for num in nums]

nums = [1, 2, 3, 4, 5]

split_idx = len(nums) // 2
part1, part2 = nums[:split_idx], nums[split_idx:]

part1_result = square_list.remote(part1)
part2_result = square_list.remote(part2)

result = ray.get(part1_result) + ray.get(part2_result)

print(result)
2023-05-02 15:39:12,231	INFO worker.py:1454 -- Calling ray.init() again after it has already been called.
[1, 4, 9, 16, 25]