Journey of a process from compilation to execution

I am reading operating system, and after reading some topics (Processes, Main Memory management) I got somewhat confused. I have knowledge about certain things but I am not able to combine and visualize them. Let’s take an example – I have a simple programme as follow:

#include<bits/stdc++.h> using namespace std;  int add(int a,int b){   return a+b; }  int main(){   int a=1,b=2;   int c=add(a,b);   cout<<c<<endl; } 

I want to know how this program will be loaded into the main memory and how will be getting the computation done.
I have certain points which I want to incorporate in the overall process.

  1. At what stage and where will I be getting the 4 sections of memory .( Text, Data, Stack and Heap).
  2. At what stage will the process be getting its PCB(Process Control Block.) Does PCB contains the 4 sections of process?
  3. When and where is the role of CPU?
  4. Address binding.
  5. Loading
  6. Linking.
  7. Logical and physical address space.
  8. Paging

    Please explain how the process will be executed including the above steps and other steps which take place in general.
    P.S. Please explain by assuming some memory addresses.

What’s the RPG about a journey from A to B, with examples about French soldiers going to kill Hitler and a team trying to win a TV race contest?

There’s this roleplaying game that’s all about a group of people trying to get from point A to point B.

The two example scenarios that are the base for all the examples in the manual are French soldiers going to Berlin to kill Hitler and guys on a TV game show needing to reach point B to win a prize before a team of hunters catches them.

If I’m not mixing two different games together, the main game mechanic is throwing dice from a certain distance at a target lying flat on a table. Rolling outside the target (too long or too short) or knocking over the pile of dice stacked in the center of the target means failure.

What are the basics of CS i should know,before I start my journey into machine learning

I am myself a non-cs graduate and would love to be a machine learning engineer.

I have learned to code and know the basics of Machine learning as well. Now I would like to know what “basics of CS” I should learn to be completely job ready.

I sometimes have difficulties reading CS documentations and don’t know how programs and computers work in background, I am also naiver on topics like memory management, operating systems, networking, electronics stuff like microprocessor, compiler design etc. Are these all necessary for my transition to AI? If they are, would you please recommend me a short learning path or books or videos. I hope I wouldn’t need to go deep in these areas. Thanks

My Journey to Building a Niche Blog Empire Making $100/Day Within 60 Days!

Hello Marketers!

My name is Leon Tran, I've been an internet marketer for quite some time now and have had successes in creating websites and some other areas of marketing.

I like to try different ways to make money online and doing new challenges. *I am also on a youtube journey to make $ 100/day, see my other journey here >>>…m-1-day-to-100-day-marketing-channel.2857413/


My Journey to Building a Niche Blog Empire Making $ 100/Day Within 60 Days!

My journey to make $9,000 a month

Hi Guys,

Thanks for all people here on DP forums
I learn so much here about affiliate marketing and start working since few years ago
– I was join with some affiliate network that recommended here
– Create simple page to add offers specialy for IMO, Finance, Investment offers
– Use promotional tips from here and my best is using social media groups

First year I just made $ 100 up to $ 1,000 a month and its great for me
After few years my earning grow up and I just hits $ 9,000 a month in Feb…

My journey to make $ 9,000 a month

Journey Planner – Javascript

Here is my Javascript solution to the following problem

Given an un-ordered list of flights taken by someone compute the person’s itinerary, given a starting airport.

If none valid itinerary, return none.

If more than one journey is valid, print any valid solution.


Array: [['SFO', 'HKO'], ['YYZ', 'SFO'], ['YUL', 'YYZ'], ['HKO', 'ORD']] Starting: 'YUL' Return: ['YUL', 'YYZ', 'SFO', 'HKO', 'ORD']. 
Array: [['SFO', 'COM'], ['COM', 'YYZ']]  Starting airport 'COM' Return None 
Array: [['A', 'B'], ['A', 'C'], ['B', 'C'], ['C', 'A']]  Starting: 'A' Return ['A', 'B', 'C', 'A', 'C'] 

Please can someone comment on readability and efficiency of the code

Thank you

function plan_journey(place, journeys, route, itinerary){     if(journeys.length == 0){         itinerary.push(route + place)      }     let stops = []     for(i=0; i<journeys.length; i++){         if(journeys[i][0] == place){             stops.push(i)         }     }     if(stops == []){         return      }      for(var i=0; i<stops.length; i++){         let slice_index = stops[i]         let remaining_journeys = journeys.slice(0,slice_index).concat(journeys.slice(slice_index + 1))         let new_route = route + place + "-"         let next_place = journeys[stops[i]][1]         plan_journey(next_place, remaining_journeys, new_route, itinerary)      }         return itinerary }  let first_stop = "A" let journeys = [['A', 'B'], ['A', 'C'], ['B', 'C'], ['C', 'A']]  itinerary = plan_journey(first_stop, journeys, "", []) if(itinerary.length != 0){     console.log(itinerary[0]) }else{     console.log("None") } 



My name is Leon Tran, I've been a DigitalPoint Member for quite some time now and have had successes in some areas (Clickbank top affiliate, ebay powerseller, and built an email list of 20,000 subs).

I like to try different things to make money online.

Currently, my Internet Marketing channel (1620 subs) finally got monetized:

On my first day I earned $ 1, it's been a week and now I'm making $ 5/day average with 500…