<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sivaram Rasathurai</title>
    <description>The latest articles on DEV Community by Sivaram Rasathurai (@rcvaram).</description>
    <link>https://dev.to/rcvaram</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F669435%2Ff141ff57-c1ea-4ea5-8f02-1fe60848a83e.png</url>
      <title>DEV Community: Sivaram Rasathurai</title>
      <link>https://dev.to/rcvaram</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rcvaram"/>
    <language>en</language>
    <item>
      <title>Remove Java Developers NullPointerException Hell</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Mon, 24 Jan 2022 16:33:18 +0000</pubDate>
      <link>https://dev.to/rcvaram/remove-java-developers-nullpointerexception-hell-a23</link>
      <guid>https://dev.to/rcvaram/remove-java-developers-nullpointerexception-hell-a23</guid>
      <description>&lt;ol&gt;
&lt;li&gt;&lt;p&gt;NullUtil.executeViaNullSafer method will execute the given function on Non-Null Values and, when the value is null It will return Null instead of executing the function.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NullUtil.executeExecutorOrDefault method will execute the given function on Non-Null Values and, If the value is null, It will return the given default value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NullUtil.executeMutator method mutates the reference type values without returning anything. If the value is null, It will not do anything.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NullUtil.replaceNull method will replace the null value with the given defaultValue. when the value is not null, It will return the value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NullUtil.hasText method is used to check the String value has any kind of text or not&lt;br&gt;
.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NullUtil.trimValue method will be used to trim the String without causing the null pointer Exception.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;More details about this Util class you can find on my medium article(&lt;a href="https://rcvaram.medium.com/remove-dirty-nullchecks-in-java-8aca833dc276"&gt;https://rcvaram.medium.com/remove-dirty-nullchecks-in-java-8aca833dc276&lt;/a&gt;) or my stackoverflow answer(&lt;a href="https://stackoverflow.com/a/70200959/12894468"&gt;https://stackoverflow.com/a/70200959/12894468&lt;/a&gt;).&lt;/p&gt;

</description>
      <category>java</category>
      <category>maven</category>
      <category>programming</category>
      <category>nullpointerexception</category>
    </item>
    <item>
      <title>Answer: Best way to check for null values in Java? How many time you have written null check</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Thu, 02 Dec 2021 15:11:09 +0000</pubDate>
      <link>https://dev.to/rcvaram/answer-best-way-to-check-for-null-values-in-java-how-many-time-you-have-written-null-check-25cm</link>
      <guid>https://dev.to/rcvaram/answer-best-way-to-check-for-null-values-in-java-how-many-time-you-have-written-null-check-25cm</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/17302256/best-way-to-check-for-null-values-in-java/70200959#70200959" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Best way to check for null values in Java?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec  2 '21&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/17302256/best-way-to-check-for-null-values-in-java/70200959#70200959" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;h1&gt; Generic Method to handle Null Values in Java &lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;If that object is not null we are going to do the following things.&lt;/p&gt;
&lt;p&gt;a. We can mutate the  object (I)&lt;/p&gt;
&lt;p&gt;b. We can return something(O) as output instead of mutating the object (I)&lt;/p&gt;
&lt;p&gt;c. we can do both&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In this case…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/17302256/best-way-to-check-for-null-values-in-java/70200959#70200959" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>java</category>
      <category>functional</category>
      <category>programming</category>
    </item>
    <item>
      <title>Answer: What is aplha-trimmed mean filter?</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Wed, 18 Aug 2021 04:06:45 +0000</pubDate>
      <link>https://dev.to/rcvaram/answer-what-is-aplha-trimmed-mean-filter-302h</link>
      <guid>https://dev.to/rcvaram/answer-what-is-aplha-trimmed-mean-filter-302h</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/63948384/what-is-aplha-trimmed-mean-filter/63948577#63948577" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What is aplha-trimmed mean filter?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep 18 '20&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/63948384/what-is-aplha-trimmed-mean-filter/63948577#63948577" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;This filter is a combination of mean filter and median filter as you said
First, we look at where we can use this filter. It performs reasonably well in the presence of both Gaussian and outlier noise.&lt;/p&gt;
&lt;p&gt;This is an algorithmic approach that tries to combine properties of the mean…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/63948384/what-is-aplha-trimmed-mean-filter/63948577#63948577" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>computerscience</category>
      <category>python</category>
      <category>programming</category>
    </item>
    <item>
      <title>Answer: Difference between Encapsulation and Abstraction</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Wed, 04 Aug 2021 05:03:39 +0000</pubDate>
      <link>https://dev.to/rcvaram/answer-difference-between-encapsulation-and-abstraction-25f8</link>
      <guid>https://dev.to/rcvaram/answer-difference-between-encapsulation-and-abstraction-25f8</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/15176356/difference-between-encapsulation-and-abstraction/65543358#65543358" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Difference between Encapsulation and Abstraction
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan  2 '21&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/15176356/difference-between-encapsulation-and-abstraction/65543358#65543358" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          4
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Yes
If I say &lt;strong&gt;Encapsulation is a kind of an advanced specific scope abstraction&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;How many of you read/upvote my answer. Let's dig into why I am saying this.&lt;/p&gt;
&lt;p&gt;I need to clear two things before my claim.&lt;/p&gt;
&lt;p&gt;One is data hiding and,  another one is the abstraction&lt;/p&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/15176356/difference-between-encapsulation-and-abstraction/65543358#65543358" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>java</category>
      <category>javascript</category>
      <category>oop</category>
      <category>python</category>
    </item>
    <item>
      <title>Answer: What is the best way to repeatedly execute a function every x seconds? [closed]</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Wed, 04 Aug 2021 05:02:04 +0000</pubDate>
      <link>https://dev.to/rcvaram/answer-what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds-closed-3jm7</link>
      <guid>https://dev.to/rcvaram/answer-what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds-closed-3jm7</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/474528/what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds/65068432#65068432" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What is the best way to repeatedly execute a function every x seconds?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 30 '20&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/474528/what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds/65068432#65068432" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          6
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Alternative flexibility solution is &lt;a href="https://apscheduler.readthedocs.io/en/stable/userguide.html" rel="noreferrer"&gt;Apscheduler&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pip install apscheduler
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;from apscheduler.schedulers.background import BlockingScheduler
def print_t()
  pass

sched = BlockingScheduler()
sched.add_job(print_t, 'interval', seconds =60) #will do the print_t work for every 60 seconds

sched.start()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also, apscheduler provides so many schedulers as follow.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;BlockingScheduler: use when the scheduler is the only thing…&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/474528/what-is-the-best-way-to-repeatedly-execute-a-function-every-x-seconds/65068432#65068432" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Detect if there is gray color in image by opencv Python</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Wed, 04 Aug 2021 05:01:21 +0000</pubDate>
      <link>https://dev.to/rcvaram/answer-detect-if-there-is-gray-color-in-image-by-opencv-python-4ce9</link>
      <guid>https://dev.to/rcvaram/answer-detect-if-there-is-gray-color-in-image-by-opencv-python-4ce9</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/64038736/detect-if-there-is-gray-color-in-image-by-opencv-python/64040822#64040822" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Detect if there is gray color in image by opencv Python
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep 24 '20&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/64038736/detect-if-there-is-gray-color-in-image-by-opencv-python/64040822#64040822" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          6
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;The better way is to change the colour space into HSV and find the Hue value range for colour.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Take each frame of the video&lt;/li&gt;
&lt;li&gt;Convert from BGR to HSV color-space&lt;/li&gt;
&lt;li&gt;Threshold the HSV image for a range of blue colour&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Below code  is from &lt;a href="https://docs.opencv.org/master/df/d9d/tutorial_py_colorspaces.html" rel="nofollow noreferrer"&gt;OpenCV official&lt;/a&gt; site to detect…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/64038736/detect-if-there-is-gray-color-in-image-by-opencv-python/64040822#64040822" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: What's a monitor in Java?</title>
      <dc:creator>Sivaram Rasathurai</dc:creator>
      <pubDate>Sun, 18 Jul 2021 15:34:05 +0000</pubDate>
      <link>https://dev.to/rcvaram/answer-what-s-a-monitor-in-java-1g6a</link>
      <guid>https://dev.to/rcvaram/answer-what-s-a-monitor-in-java-1g6a</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/3362303/whats-a-monitor-in-java/64116702#64116702" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What's a monitor in Java?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep 29 '20&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/3362303/whats-a-monitor-in-java/64116702#64116702" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          8
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;In concurrent programming, we need to focus on two things&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Mutual exclusion&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;When a process/thread is executing its critical section no other processes are allowed to execute their critical section. (Each process has a code segment called "Critical section" in which shared data is accessed.)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Synchronisation&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;When threads are trying…&lt;/p&gt;
&lt;/blockquote&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/3362303/whats-a-monitor-in-java/64116702#64116702" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>java</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
