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

$25

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:
5/5 - (1 vote)

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 moduleproducer_consumer.cbased 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 usingkthread_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 providedthread_count.shscript 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:

    • Runmakecommand in the terminal to compile the kernel module.
    • This generates the module fileproducer_consumer.ko.
  2. Testing:

    • Execute thethread_count.shscript 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
$25