Thread: OPERATION system Concept

  1. #1
    Banned
    Join Date
    Apr 2015
    Posts
    596

    OPERATION system Concept

    Hi guys, I've started dealing with high C programming level over operating system manipulations; what I'm confused in is, the concept of "process" ; how does multiple process/threads run simultaneously in parallel?! I'm trying to convert that concept in real life but there's no things are carrying out simultaneously in parallel ...and if someone has any analogous for that then it would be much appreciated to tell me about it.


    thanks

  2. #2
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    948
    LMGTFY

    The first link looks good: Concurrency and Parallelism in the Real World - LispCast

    And if you look around, you'll find a lot of real-life examples of the type of concurrency that typically happens in a multi-tasking OS: traffic signals, waiting in line (queue) at the bank or restaurant, etc.

  3. #3
    Banned
    Join Date
    Apr 2015
    Posts
    596
    Quote Originally Posted by christop View Post
    LMGTFY

    The first link looks good: Concurrency and Parallelism in the Real World - LispCast

    And if you look around, you'll find a lot of real-life examples of the type of concurrency that typically happens in a multi-tasking OS: traffic signals, waiting in line (queue) at the bank or restaurant, etc.
    but for example waiting in a line at bank, if I came late then I will sit and wait .. but for people who arrived before, they are already awaiting.
    so my question, concurrency and parallelism doesn't mean that all process must "initialize" at the same time? it just mean that they are running in the same time regardless if one started before the other?!

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Did you even read the article that christop linked to?

    Seriously though, why are you still trying to find perfect real world analogies? All analogies must fail in some way, otherwise they would be the thing itself. So if you insist on analogies, try understanding the similiar idea conveyed by the analogy, and ignore whatever doesn't fit. If you cannot do that then stop seeking analogies.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > how does multiple process/threads run simultaneously in parallel?
    It's faked.

    The same way that a film at the cinema is perceived to be in motion, whereas it's just a series of static images being displayed quickly.
    The same way that a car engine is perceived to emit a continuous sound, whereas it's just a rapid sequence of discrete explosions.

    If you examine anything with a sufficiently short clock or rule, you will eventually find granularity where you previously observed continuity.

    > but there's no things are carrying out simultaneously in parallel
    So you've never been to a supermarket checkout line then?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Banned
    Join Date
    Apr 2015
    Posts
    596
    alright thanks!

  7. #7
    Registered User
    Join Date
    Dec 2017
    Posts
    1,633
    Quote Originally Posted by laserlight View Post
    Did you even read the article that christop linked to?
    Of course he didn't. He never reads anything and certainly never understands anything.
    He is a spamming troll.
    His account should be deleted.
    A little inaccuracy saves tons of explanation. - H.H. Munro

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. operation system I can use
    By t014y in forum Tech Board
    Replies: 6
    Last Post: 12-29-2008, 04:53 PM
  2. Concept
    By kusal in forum C Programming
    Replies: 12
    Last Post: 01-06-2007, 10:32 PM
  3. Concept help
    By Mithoric in forum Windows Programming
    Replies: 13
    Last Post: 04-18-2004, 03:05 PM
  4. File I/O - Concept
    By MethodMan in forum C Programming
    Replies: 0
    Last Post: 03-02-2003, 12:07 PM

Tags for this Thread