8- Race Conditions

5:53 2 स्पीकर 2 अध्याय 141 खण्ड

अध्याय

  1. 0:03

    Let's say as part of downloading multiple files, we want to show the total number of bytes we have downloaded so far. So we need to store the total value somewhere and have multiple threads incremented as they are downloading files. This is…

  2. 1:39

    Now, we should pass this status object to each download file task. So, let's pass it here. Now, we let IntelliJ create a constructor for receiving this value. So, we press alt and enter. Create constructor. There you go. Pretty easy. Now, w…