Java 8 - What is Parallel Stream || Sequential vs Parallel Stream |ForkJoinPool |Prime Number Stream

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • In this video, I have explained What is Parallel Stream || Sequential vs Parallel Stream |ForkJoinPool |Prime Number Stream
    Learn:
    1. What is ForkJoinPool
    2. CPU Core
    4. What is parallel stream and parallel() and parallelStream() methods.
    5. Different examples of Parallel Stream Methods
    6. Prime Number Case Study with Streams with performance analysis
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/...
    Paid courses (Recorded) videos:
    naveenautomati...
    For Java & Selenium - naveenautomatio...
    For API (Manual + Automation) - naveenautomatio...

ความคิดเห็น • 7

  • @praveen420ify
    @praveen420ify 3 ปีที่แล้ว +1

    One quick question. Why did u put "number/2" in rangeclosed Method... I did not understand that because of 7, range would be 2 to 3.5 ? Please suggest...

    • @_rishabh
      @_rishabh 3 ปีที่แล้ว

      Hi Praveen,
      number/2 will return 3 if 7 is passed as parameter (as it is "int"),
      Logic of checking prime number is basically if we get a number we divide it by 2,
      for 7 it will be 7/2 =3
      now we will divide 7 by each number starting from 2 ( in this case 2 and 3),
      if it gets completely divided by any number then we will simply say it is not prime else prime.
      Hope it clears your confusion.

  • @deep80105
    @deep80105 4 ปีที่แล้ว +2

    We are learning so much from this series. Thanks.

  • @bhaskerreddygavinolla7555
    @bhaskerreddygavinolla7555 3 ปีที่แล้ว +1

    Thanks for the video contains useful stuff

  • @syedarbaz3781
    @syedarbaz3781 2 ปีที่แล้ว

    we cant check cores like that

  • @mokshm8264
    @mokshm8264 4 ปีที่แล้ว

    Thanks for the video

  • @olala-j7g
    @olala-j7g ปีที่แล้ว

    bro please buy good microphone