CS609 Assignment No 2 Solution 2024 100% Correct Complete Solution by M. Junaid Qazi | cs609 2 2024

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • CS609 Assignment No 2 Solution 2024 100% Correct Complete Solution by M. Junaid Qazi | cs609 2 2024
    For Paid CS Assignment and Project Contact me on my Whatsapp: 03074960034
    🎓 Struggling with CS609 Assignment 2? M. Junaid Qazi has you covered with a comprehensive and 100% correct solution for CS609 Assignment 2 in 2024.
    🔍 Follow along step-by-step as Junaid meticulously breaks down each problem, providing clear explanations and thorough solutions, ensuring you grasp every concept effectively.
    💡 Whether you're a student seeking expert guidance or an enthusiast eager to enhance your understanding, this video is your ultimate resource for mastering CS609.
    🚀 Don't let CS609 Assignment 2 stress you out any longer-access this video now and confidently ace your assignment!
    🔔 Subscribe for more high-quality educational content and stay ahead in your academic journey.
    #CS609 #cs609Assignment2Solution#cs609Assignment2100%accuratesolution#CS609Assignment2fullsolution#assignment2024 #ComputerScience #Solution #Tutorial #Howtomakecs609Assignment22024 #Howtomakecs609Assignment2spring2024 #cs609AssignmentNo2Solution2024 #CS609AssignmentNo2SolutionSpring2024 #Spring2024 #No2Solution #SolutionNo2#CS609Assignment2Solution #CorrectSolution #CompleteSolution #CompleteDetail #Full #CS609AssignmentHelp #CS609Tutorial #CS609Solution #CS609AssignmentAssistance #ComputerScienceAssignment #CS609Spring2024 #CS609AssignmentTips #CS609StudyGuide #CS609AssignmentSupport #CS609Assignment2024 #CS609AssignmentVideoTutorial

Комментарии • 29

  • @RajputZadii-fk2pb
    @RajputZadii-fk2pb 7 месяцев назад

    good work sir, May Allah bless you with sucess happiness and prosperities. Ameeeeeeeeennnn

  • @fareehaliaqat9627
    @fareehaliaqat9627 7 месяцев назад +4

    great effort...........plz provide the code in comments as u did last time

  • @maimoonafarooq8204
    @maimoonafarooq8204 7 месяцев назад

    AOA, links m data kahan sy likhna h?

    • @CodeDeveloper34
      @CodeDeveloper34  7 месяцев назад

      Kuch bhu likh sakty hai links file me ap apna name ya apni vuid bhi likh sakty hai but links2 me kuch nahi likhna ap logo ne

  • @amirsaeed6110
    @amirsaeed6110 7 месяцев назад +1

    #include
    #include
    #include
    #include
    #include
    #include
    struct ThreadData {
    HANDLE hSrcFile;
    HANDLE hDestFile;
    LARGE_INTEGER offset;
    DWORD chunkSize;
    int threadNum;
    DWORD bytesCopied;
    };
    void copyFileSegment(ThreadData* data) {
    LARGE_INTEGER offset = data->offset;
    DWORD chunkSize = data->chunkSize;
    HANDLE hSrcFile = data->hSrcFile;
    HANDLE hDestFile = data->hDestFile;
    std::vector buffer(chunkSize);
    DWORD bytesRead = 0, bytesWritten = 0;
    SetFilePointerEx(hSrcFile, offset, NULL, FILE_BEGIN);
    ReadFile(hSrcFile, buffer.data(), chunkSize, &bytesRead, NULL);
    SetFilePointerEx(hDestFile, offset, NULL, FILE_BEGIN);
    WriteFile(hDestFile, buffer.data(), bytesRead, &bytesWritten, NULL);
    data->bytesCopied = bytesWritten;
    std::cout

    • @mairaashraf
      @mairaashraf 7 месяцев назад

      as mn error a rha hai

    • @CodeDeveloper34
      @CodeDeveloper34  7 месяцев назад

      @@mairaashraf bhai run kro or error ka ss muje whatsapp kro

    • @amirsaeed6110
      @amirsaeed6110 7 месяцев назад

      @@CodeDeveloper34 mere pass THK run ho rha hai

    • @amirsaeed6110
      @amirsaeed6110 7 месяцев назад

      @@mairaashraf #include
      #include
      #include
      #include
      struct ThreadData {

      HANDLE sourceFile;
      HANDLE destFile;
      DWORD chunkSize;
      DWORD offset;
      };
      DWORD WINAPI CopyChunk(LPVOID IpParam) {

      ThreadData* data = (ThreadData*)IpParam;

      DWORD bytesRead, bytesWritten;

      std::vector buffer(data->chunkSize);
      SetFilePointer(data->sourceFile, data->offset, NULL, FILE_BEGIN);
      ReadFile(data->sourceFile, buffer.data(), data->chunkSize, &bytesRead, NULL);
      SetFilePointer(data->destFile, data->offset, NULL, FILE_BEGIN);
      WriteFile(data->destFile, buffer.data(), bytesRead, &bytesWritten, NULL);
      return 0;
      }
      int main() {
      std::string sourcePath, destPath;
      int numThreads;
      std::cout destPath;
      std::cout > numThreads;
      HANDLE sourceFile = CreateFile(sourcePath.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
      if (sourceFile == INVALID_HANDLE_VALUE) {
      std::cerr

    • @amirsaeed6110
      @amirsaeed6110 7 месяцев назад

      yea correct hai code apni id change kr lena baqi sab ok hai

  • @AishaFarman
    @AishaFarman 7 месяцев назад

    Good job

  • @rehanamjad7036
    @rehanamjad7036 7 месяцев назад

    Threads is trhan print horahy whats the issue?
    "Thread Thread 12 copied copied 54615461 bytes from offset bytes from offset 05461"

    • @CodeDeveloper34
      @CodeDeveloper34  7 месяцев назад

      Ye jab ap ek hi file ko ek se ziyada bar copy kr lety ho to chunks me issue a jata hai

    • @rehanamjad7036
      @rehanamjad7036 7 месяцев назад

      @@CodeDeveloper34 issue resolved by using mutex

  • @sajidasadiq-zw7mg
    @sajidasadiq-zw7mg 7 месяцев назад

    Asslam-O-Alaikum Sir, jab number of thread enter karti hun "2" tu wo error dy raha file ka size show nhi hu raha. plzzz tell me about my mistake

    • @CodeDeveloper34
      @CodeDeveloper34  7 месяцев назад

      Ap ne thread k code me koi mistake ki hai

  • @ZafarIqbal-c6r
    @ZafarIqbal-c6r 7 месяцев назад

    Sir , mry code ma link2 file ma data nahi copy horaha file empty hi ha?why

  • @amirsaeed6110
    @amirsaeed6110 7 месяцев назад

    This is the 100% correct code you can copy and compile and run

  • @ArhamAli-v1e
    @ArhamAli-v1e 7 месяцев назад

    Plz koi code sent kar dn

  • @itspoetrylovers8538
    @itspoetrylovers8538 7 месяцев назад

    Please code provided kar dain

  • @ArhamAli-v1e
    @ArhamAli-v1e 7 месяцев назад

    Code tu sent kar dn

    • @amirsaeed6110
      @amirsaeed6110 7 месяцев назад

      #include
      #include
      #include
      #include
      #include
      #include
      struct ThreadData {
      HANDLE hSrcFile;
      HANDLE hDestFile;
      LARGE_INTEGER offset;
      DWORD chunkSize;
      int threadNum;
      DWORD bytesCopied;
      };
      void copyFileSegment(ThreadData* data) {
      LARGE_INTEGER offset = data->offset;
      DWORD chunkSize = data->chunkSize;
      HANDLE hSrcFile = data->hSrcFile;
      HANDLE hDestFile = data->hDestFile;
      std::vector buffer(chunkSize);
      DWORD bytesRead = 0, bytesWritten = 0;
      SetFilePointerEx(hSrcFile, offset, NULL, FILE_BEGIN);
      ReadFile(hSrcFile, buffer.data(), chunkSize, &bytesRead, NULL);
      SetFilePointerEx(hDestFile, offset, NULL, FILE_BEGIN);
      WriteFile(hDestFile, buffer.data(), bytesRead, &bytesWritten, NULL);
      data->bytesCopied = bytesWritten;
      std::cout