ENCE360 Assignment- Multi thread Downloader-main Solved

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

Your task is to write (some parts of) a multi-threaded HTTP multipart downloader program.

There are two parts:

Part 1 – a minimal HTTP client

Part 2 – a concurrent queue using semaphores.

Part 3 – determining chunk sizes and the number of partial downloads required

Part 4 – merging & removing partial content files

A downloader is written in terms of these parts and you will do some analysis and write a short report.

All the programs can be compiled using a Makefile provided simply by going to the base directory where you unpack the assignment and typing ‘make

Guidelines

  • No more than 3 levels of nesting in any function and less than 40 lines of code
  • Use minimum amount of code required
  • Do not modify any code outside of c, queue.c and downloader.c (or the test programs which you may modify to improve – but they will not be marked), otherwise your submission will fail to compile (and you will receive zero marks)
  • All memory allocated during the programs execution should be free()’ed and all resources, files, sockets should be closed before the program finishes. Check your program with valgrind – leakcheck=all to be sure!
  • Comment code as necessary, excessive commenting is not required but anything not obvious should be documented
  • Marks will be awarded for clean code and documentation

 

  • multi-thread-Downloader-main-hwpuvx.zip