[SOLVED] CSE330 Project 3 Kernel Module Producer-Consumer Problem

30 $

File Name: CSE330_Project_3_Kernel_Module_Producer-Consumer_Problem.zip
File Size: 527.52 KB

SKU: [Solved] CSE 330 – Operating Systems Project #3 Category: Tag:

Or Upload Your Assignment Here:


Project 3: Kernel Module for Producer-Consumer Problem

Description:

This project involves implementing a kernel module that addresses the producer-consumer problem. The module launches multiple kernel threads, synchronizes them using semaphores, and provides parameters for customization.

Steps Taken:

  1. Understanding the Problem Statement:

    • Analyzed the provided problem statement to identify the requirements and constraints.
    • Determined the key components required for the implementation, such as kernel threads, semaphores, and module parameters.
  2. Writing the Code:

    • Developed the kernel module producer_consumer.c based on the problem statement.
    • Implemented functions to create producer and consumer threads, synchronize them using semaphores, and handle module loading and unloading.
  3. Modifying the Code:

    • Made adjustments to resolve errors and improve code structure based on errors during testing.
    • Updated the module exit function to properly stop the kernel threads using kthread_stop.
  4. Testing:

    • Compiled the kernel module using the provided Makefile.
    • Tested the module by loading and unloading it with different parameter configurations.
    • Used the provided thread_count.sh script to automate testing and verify the behavior of the module.

Files Included:

  • producer_consumer.c: Contains the implementation of the kernel module.

How to Use:

  1. Compilation:

    • Run make command in the terminal to compile the kernel module.
    • This generates the module file producer_consumer.ko.
  2. Testing:

    • Execute the thread_count.sh script to perform automated testing.
    • The script loads and unloads the module with different parameter configurations and checks the output to verify correctness.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CSE330 Project 3 Kernel Module Producer-Consumer Problem
30 $