© Distribution of this video is restricted by its owner
00:00 | Mhm. Okay, so I talked open empty today and the next couple |
|
|
00:14 | electors as well. Uh this kind the first things parallel programming and so |
|
|
00:26 | demo or somethin demo thursday today, starting to talk about opening, so |
|
|
00:40 | . Well, Mhm Okay, so a bit about line that is all |
|
|
00:49 | in this general talks about open what it's for and what it is |
|
|
00:54 | then eventually get to talking specifically constructs how to use open it. But |
|
|
01:04 | think it's important to remind you and open empty is for. So it's |
|
|
01:14 | for programming, I would say the for a single server as supposed to |
|
|
01:24 | cluster. The reason for that is based on shared memory models to speak |
|
|
01:33 | best. Let's assume that Oh, , because I will talk about that |
|
|
01:42 | bit but on execution basis knows about same memory which is not the case |
|
|
01:50 | custard because different notes difficult, do know anything about the memory in other |
|
|
01:58 | , so that takes a different program to be clusters than for dealing with |
|
|
02:04 | in a single month. This is a picture to remind you, I |
|
|
02:10 | to talk about and I talked about both in terms of that nowadays, |
|
|
02:16 | in service funds of course in And then you put together a few |
|
|
02:21 | these onto into server and the typical this to self service, that's supposed |
|
|
02:26 | keep the bridges, That's the most one but or surface service are not |
|
|
02:33 | uncommon, you can take some conservatives after about this, you should not |
|
|
02:40 | type platform but they all basically the things are implemented is that the physical |
|
|
02:48 | and what this advocated to the physical . Yes. Having reminded at this |
|
|
02:55 | that they always against the note knows song. They do have and share |
|
|
03:02 | space for a note and on also you pointed out this assignment before. |
|
|
03:12 | the number of threats that you can and the opportunity to manage in, |
|
|
03:18 | know, No, the several 100 in 2000 depending upon what the configuration |
|
|
03:24 | the server is. But even on single processor in a single subject, |
|
|
03:31 | may have won over 100 threats the . And this is just a reminder |
|
|
03:39 | of data points I get here But just to be something completely the |
|
|
03:44 | of personalization of one has to orchestrate a single note. Right now there |
|
|
03:53 | different programming models for actually dealing with is and today in the next election |
|
|
04:00 | about empty That again is a shared programming. There are other models like |
|
|
04:08 | then we'll talk about after arms. , if you elect after we talked |
|
|
04:15 | open and peace. So that's migrating what's used for plaster program And when |
|
|
04:20 | don't have to share other spaces use person professor behind that is essentially communications |
|
|
04:28 | there formal stuff around between nose in cluster. It's nothing that prevents you |
|
|
04:35 | using that programming model as well in single note. But uh, it |
|
|
04:42 | a little bit more sort of heavy . And so the overhead and using |
|
|
04:47 | is generally higher than you use an aPI So that's fine. Open Empty |
|
|
04:53 | kind of a note programming model and N. P. Is for dealing |
|
|
04:59 | and those two can be combined in is called ivory programming message Open Empty |
|
|
05:04 | a note for dealing with multiple Kosik is kind of a lower |
|
|
05:11 | So open Empty is kind of provide to the posted threats. So it's |
|
|
05:20 | generates code or his course, it's . And then there is the notion |
|
|
05:29 | , you know, compilers that automatically close. But so far they haven't |
|
|
05:36 | been very successful. So that's why with probably is still up to the |
|
|
05:44 | such. So no, The one open empty. Open Empty as it |
|
|
05:54 | here is that's taking your singular for and then, uh, directives to |
|
|
06:02 | too. Try to inform the computer sense you want to be able the |
|
|
06:08 | should be able to do with your . So it's the help declare for |
|
|
06:21 | what parts of code can be run parallel And the compiler doesn't check whether |
|
|
06:27 | rifles are well, it's up to program and to make sure that things |
|
|
06:35 | , will still be correct. You of have to compare the hits and |
|
|
06:39 | this part. Then there is run routines inquire about uh status of the |
|
|
06:47 | as that cold and its execution as . And then they're supporting environmental variables |
|
|
06:55 | issues uh what we are managing things actually being run. Um and |
|
|
07:07 | so there is. So it's an standards and Yeah, but the open |
|
|
07:15 | architecture border that's as a process for . Mm hmm. So it's just |
|
|
07:28 | I want to find a lot of and report to the opening of the |
|
|
07:32 | door website. Uh lots of presentations tutorials about standing. It's a lot |
|
|
07:42 | information. So it's highly recommended to a look at this website because let's |
|
|
07:52 | Oh yeah. Uh listen to Uh rather I'm sorry about that. |
|
|
08:00 | fix that. Uh Uh huh. , yes. Yeah. So |
|
|
08:10 | Uh huh. So we find also on the web that the whole then |
|
|
08:15 | move around to find tons of India's vectors and thoughts what flavors about open |
|
|
08:24 | see. So why they're coming of and refined. Very good tutorial. |
|
|
08:31 | cover certain aspects of open into this would be quite rich in his |
|
|
08:42 | Um and this is kind of This uh open empty again is based |
|
|
08:53 | the shed and reprogrammed. I'm also our execution speech and oh no, |
|
|
09:01 | about the same time. It's just point that's and chapter before but there's |
|
|
09:10 | another version that is symmetric but the is an SNP not to be confused |
|
|
09:17 | in shared memory process for someone you S and P if it's correct to |
|
|
09:22 | the terminology and cement not the process share and symmetric means that uh huh |
|
|
09:31 | that can access memory in the same as any other factors difference in access |
|
|
09:42 | among fits so you're kind of a . So basically she looked at in |
|
|
09:49 | case is four subjects. No for socket it's kind of behaviors and S |
|
|
09:56 | P. Because all the things that on the core, they see the |
|
|
10:01 | memory attached to the market distinction between different goods, seven different exercises in |
|
|
10:09 | . But when you look at the note then it becomes a new mono |
|
|
10:16 | yes it's share the address space for the processors in the same health but |
|
|
10:24 | access time is no longer the So you have like in this scenario |
|
|
10:30 | that basically that go try to retrieve from the memory that is connected to |
|
|
10:38 | socket of another processor then it is longer access time than it is for |
|
|
10:47 | local happen. So that's from the comes in good to have a statue |
|
|
10:53 | understand the difference between SNP's but and because the global there's a global other |
|
|
11:00 | for the note. So it's to with our listeners and p for a |
|
|
11:06 | model, it is still showing configuration the north. So that was just |
|
|
11:16 | so now what is open and these open that is certain is a set |
|
|
11:25 | directives combined with some, you in time functions. So that information |
|
|
11:31 | what's going on. Um So I'm to take your C for 10,000 after |
|
|
11:39 | too. Finally you can see this the home piper, then the runtime |
|
|
11:46 | and the operating system, uh, of business for you, sometimes it's |
|
|
11:54 | wanted to do something. And so kind of restless the programming layer, |
|
|
12:04 | part of this whole thing. mm. So I guess um the |
|
|
12:16 | thing was the doctor that left about case has no known threats and |
|
|
12:26 | And third, the substance is mentioned is just a very light, big |
|
|
12:34 | . It has kind of pretty much an innovation that it takes that execute |
|
|
12:38 | solid. Us. This program comes for this instruction sequences, registers associated |
|
|
12:47 | I think, and it has sort memory associated with it. Uh |
|
|
12:52 | Then I guess it's driven me and of the rundfunk functions in the opening |
|
|
12:59 | lets you also deploying and figure out threat and uh what it is. |
|
|
13:09 | the process has more stuff that related reduce her in attendance, do accounting |
|
|
13:15 | security and all kinds of other That's kind of more so this is |
|
|
13:23 | kind of a pretty simplistic picture of Australia's and points out, sorry, |
|
|
13:29 | the process is and what one is , what is said in terms of |
|
|
13:35 | minimalistic in terms of the context of with. So what open MPI is |
|
|
13:44 | been doing providing services for managing fred . Yeah. Yeah. So All |
|
|
13:54 | . This is what that's um and likes it. So it can they |
|
|
14:02 | that if I can do that best level interface, the post express. |
|
|
14:08 | some of the code that is generated it goes that is produced by the |
|
|
14:15 | and compiling. Once, you it's just a directive that you used |
|
|
14:21 | order to tell what what to So that's your call. So |
|
|
14:30 | pretty much comments and that's fun. this is still a little bit |
|
|
14:41 | So yeah, context. We can't that this, you know, this |
|
|
14:49 | open this particular function on a particular . A process and a personal |
|
|
14:58 | Um so, mm hmm threads are of inside the process. So that's |
|
|
15:09 | of the door. So the process have several different threats to execute. |
|
|
15:13 | the process is supposed to be always of it starts with the process of |
|
|
15:18 | art of the concept of threats. maybe just a single process. |
|
|
15:26 | There are ways of controlling. Uh yeah, I was so controlling once |
|
|
15:44 | particular, there is give some example but it's not total control because they're |
|
|
15:52 | has a lot of ways of freedom a certain amount of things you can |
|
|
15:56 | in terms of what threat does, pieces of code that's associated. |
|
|
16:05 | Mhm. So we'll talk about giving . So you want comments are |
|
|
16:16 | Okay. So normal and it we not care too much what is a |
|
|
16:28 | constantly cold. You might care more where that cold fronts. Yeah. |
|
|
16:36 | one of the s and to get very precise cancer because the relationship between |
|
|
16:43 | speed and work lives in memory. that's a matter of expanding drugs, |
|
|
16:52 | ? Because when they are created they're equal what noses relationship. Mhm. |
|
|
17:00 | institution goes to the core and where data lives in terms of corner |
|
|
17:09 | So we'll come to that not today university or so this tells a little |
|
|
17:18 | thing. And so our program, under the strategic decision or what? |
|
|
17:29 | . Should there paralyzed and in the a little bit of house. Mhm |
|
|
17:38 | then the computer and said no Yeah. Because he doesn't try to |
|
|
17:47 | all this for itself to instruct the that this piece can be paralyzed |
|
|
17:54 | Uh No automatic. So the father directors and then generated profit goals for |
|
|
18:08 | runtime system. And the I was hopefully do what you wanted it to |
|
|
18:15 | ourselves. Things executing and terrible. it's essential essence, it's supposed to |
|
|
18:25 | high level interface suspected, supposed to in the management of perilous easier. |
|
|
18:33 | so he was Yeah. Uh So Yes, I guess at one |
|
|
18:46 | . Yeah from their pointed out because start with your sequential program essentially and |
|
|
18:52 | you want to paralyze it and then can be with this step by step |
|
|
18:57 | service. Uh huh. Directors of in your cold and they shouldn't change |
|
|
19:04 | correctness of the cold, not a . So that's the thing. That's |
|
|
19:10 | good way. Pulling a cold from parallel, basically introduce the profiling to |
|
|
19:19 | out which sponsored posts important to So try to reduce execution to kind |
|
|
19:25 | start to figure out the virus. the time going my coat. |
|
|
19:30 | Try to figure out how to go them the most time I figure after |
|
|
19:39 | . So here is Carlos, something of single words. So called users |
|
|
19:44 | front of us. It's heavily involved open empty development. Two books there |
|
|
19:54 | open empty his name. Often it from the top, but it's coming |
|
|
20:04 | to essentially what what else for They don't get any better code by |
|
|
20:13 | an empty then start doesn't help. , and that's again, while this |
|
|
20:21 | of his course trying to focus on individuals course or single fair performance and |
|
|
20:27 | that and then they want from that dealing with the analysis and it's |
|
|
20:38 | So that's part of my iron as . No, I sounds like parallel |
|
|
20:45 | up very much. We'll talk about on because it turns out this harbor |
|
|
20:51 | bad cold in terms of and resource intends to paralyze you get very good |
|
|
20:57 | up. It's really still very bad . On the other hand, the |
|
|
21:04 | that is using the resources very well up to that part, the parallels |
|
|
21:09 | maintain the level of. So that's of the last four months of this |
|
|
21:17 | . Oh, so now uh huh model works is a big problem. |
|
|
21:25 | join parallel list so they haven't directed some people told going to paralyze. |
|
|
21:35 | , so that's maybe not a complete . Must be it's a sensible |
|
|
21:43 | a recent poll because Caroline something comes some over and bust so it's not |
|
|
21:50 | to terrorize supposed to last, he's paralyzed. It's not worth the |
|
|
21:58 | So that's what typically called may go carol reason says there's no amend that |
|
|
22:04 | and parallel again. And certainly if do come to the realization that parallels |
|
|
22:21 | . And then it was more about things, but just a little |
|
|
22:25 | So it's kind of for joints of to join this. This is synchronization |
|
|
22:32 | something but they also want to manage directly under waste synchronization primitives, open |
|
|
22:42 | that's the only control that and another is on the run things and travel |
|
|
22:48 | that's the question and they divide up work of the threats. So that's |
|
|
22:53 | there is a way of managing what society, each one of them. |
|
|
23:01 | . Uh and then uh, but the technical stuff, this uh features |
|
|
23:11 | opening people. So from an execution of view is best for this notion |
|
|
23:18 | joined with the parallel regions uh than other part. That is probably essential |
|
|
23:25 | that's the foundation, I would say empty is this notion of America Sharon |
|
|
23:33 | might have a bunch of friends uh in many bad things. So please |
|
|
23:42 | why I open it. You have notion on the call private memory. |
|
|
23:49 | yes, friends. And uh the he's remembered. Uh no other threats |
|
|
23:59 | . So for memory, everybody has free to access that piece of the |
|
|
24:08 | . So that's why this is choice or what variables are erased. |
|
|
24:17 | two states and shared memory. Which , wow to be uh private strength |
|
|
24:28 | order to Okay, well, race made out of the effects on I'm |
|
|
24:35 | members. And so even though the point of view that there's no shared |
|
|
24:45 | , I just want to remind you that underline that is the real |
|
|
24:50 | which is a general. So even politically the show it looks like the |
|
|
24:59 | , it may be distributed across the features. So that's what makes it |
|
|
25:08 | access time. Open number of variables they want to access of that civilization |
|
|
25:14 | concerned. Institute where he likes. . Uh huh. So let's see |
|
|
25:23 | this event from this type of Yeah, searching, tractor paralyzing. |
|
|
25:29 | it's not paralyzing because there's over Yeah, he's also wanting it in |
|
|
25:36 | using this chad memory because this error and again the compiler will not check |
|
|
25:45 | there semantics is correct not. So up to you to make sure that |
|
|
25:49 | doesn't go wrong. Um Any other . Uh huh That's what I |
|
|
26:01 | Uh huh. So tomorrow 19 young is a sequence. So the relationship |
|
|
26:08 | transport and where they actually lives is at the student This past should beware |
|
|
26:15 | performance implications and the other part that didn't say but I would love |
|
|
26:22 | So what happens when you have private ? It could be that in fact |
|
|
26:28 | replication. So if you just decide nothing goes wrong, each thread gets |
|
|
26:33 | copy of what you want to work that date back to the shared |
|
|
26:39 | So that means again you'll blow up memory requirements because you don't call this |
|
|
26:45 | for you. That's what protections do want to use private costume memory of |
|
|
26:52 | fish. So I think what I in the best conditions. Yeah, |
|
|
27:08 | otherwise general central section is offensive because course you don't need to have some |
|
|
27:16 | or something else, but it does pretty much the slowest death controls everything |
|
|
27:23 | time. So if it's not perfect slowest third control, that's always, |
|
|
27:30 | why if we don't need to certain of students and there are mechanisms for |
|
|
27:35 | also when you have some part of too, give a little bit of |
|
|
27:43 | escape cost to some threat. You have to wait until so they will |
|
|
27:48 | on the following points and it should the compiler and all that is presumably |
|
|
27:54 | to do so so sometimes when that the various things into a troll structures |
|
|
28:05 | constructs that you used to declare that work shine district to work. And |
|
|
28:14 | there is this notion of shared versus . Thanks. Now, so this |
|
|
28:24 | uh so any questions on this, was to preamble the general principles, |
|
|
28:33 | one of the specific constructs that are Yeah. So first said it basically |
|
|
28:46 | got the basic notions coming back to I've actually before and previous spectrum basic |
|
|
28:53 | this kind of entity that you usually with the much basic dance in terms |
|
|
29:00 | what you want to paralyze. You not be the fractions. So |
|
|
29:09 | Okay on several constructs. So so is uh yes difficult. What did |
|
|
29:19 | do this magma open empty or all correspondent for see. Mhm. That's |
|
|
29:34 | for us, students today are more with a fortune of this. So |
|
|
29:44 | this yeah, that's programmed to be the thing that starts one of these |
|
|
29:53 | and then whatever you want to. , because the product practice subjects and |
|
|
30:03 | on what to watch privatization, the name a few about them and then |
|
|
30:11 | have causes the modified direct a little the behavior of this private relationship. |
|
|
30:23 | . And so they get some more example. So this gives a concert |
|
|
30:29 | parallel this episode. This says whatever follows their breakfast things that can be |
|
|
30:36 | Julian occurrence uh doesn't value much I'm to do because there was no |
|
|
30:45 | The process was not used to direct . So what happens in these cases |
|
|
30:52 | run from system when uh agrees with operating system of common interests to generate |
|
|
30:59 | subject will be so it is whatever own times. There's something that is |
|
|
31:06 | good thing at the time. And we'll talk more about that |
|
|
31:14 | And uh, there's an example of this is what the computer called. |
|
|
31:21 | potentially like the one to the That is the thing to the course |
|
|
31:27 | are actually All right. So now usual standard example before you get too |
|
|
31:39 | to find you. So, so is a kind of a description of |
|
|
31:49 | title of the other fine opening on page that interview, make sure that |
|
|
31:58 | what and at this stage our nervous , the construct that says the world |
|
|
32:08 | and the executed So depending upon how threats we get these things uh, |
|
|
32:20 | for at this point statistics after Iran several states. So um, so |
|
|
32:34 | is no what from Dixon and uh Yeah, patches. Now I have |
|
|
32:43 | make sense of them. Is that you expected to see? Oh |
|
|
32:59 | Uh huh Yes. Yeah. It's yes. Why here non stop for |
|
|
33:13 | , for, for our right. the first thing it looks in this |
|
|
33:22 | , uh, see your first, one text a number so this, |
|
|
33:30 | can hear that. That's one of functions that important. The one consistent |
|
|
33:37 | in terms of the number and then , friends, the big state associated |
|
|
33:44 | you spent on this. Yeah. know, we work for, so |
|
|
33:50 | this case how you were getting for . Yeah. Buy whatever that's the |
|
|
34:04 | . The second thing is it's whole uh huh civilization are ordering between trades |
|
|
34:13 | tested. So all four guns this of trouble and you have no idea |
|
|
34:23 | principle of which that gets to the statement, first, second place frank |
|
|
34:30 | so that's why this order for and soul. That's right. It's not |
|
|
34:38 | either. And order here, you , all threads trying to get this |
|
|
34:46 | or any dress. That's the second . So that's fine. I want |
|
|
34:50 | see that you're going, Yeah, right. So this is in fact |
|
|
35:06 | happening area. It's better once or a copy of this call. That's |
|
|
35:16 | most likely in most situations. That's , we don't want because that means |
|
|
35:25 | kind of redundant execution if you do statistical colder, you may actually want |
|
|
35:31 | normally to divide up the work among trends as opposed to have always through |
|
|
35:37 | second country. So that's one part told us replicated. He's told he |
|
|
35:45 | several politics and there's no ordering. . Uh the one that gets done |
|
|
35:53 | and again a sign it is a of called for his friends. So |
|
|
35:59 | all happens people work. That doesn't because its standards. So any questions |
|
|
36:10 | not because that's a fundamental to understand it. That's culture application for parable |
|
|
36:19 | on the student claire action. And there is no order in between |
|
|
36:26 | first. So that's why I said . Typically don't want to. You |
|
|
36:37 | not work. So this is a So then the caramel you can recover |
|
|
36:47 | four and that means the affordable that the existence. Well he divided up |
|
|
36:57 | the threats and in this case we specify how could be divided up. |
|
|
37:05 | then they're unconscious the best and traffic petition suggested text index linked to the |
|
|
37:14 | and divided up whatever number of threats. Jihad and tries to get |
|
|
37:19 | many integrations for some of the facts this day. Yeah, notion of |
|
|
37:27 | parallel school actually easier and other He's given the 3000 is harder. |
|
|
37:36 | center whatever text. Well, so uh let's see if I answer the |
|
|
37:48 | they ask this, they're trying remember . Uh so the great soul The |
|
|
37:57 | 70 Duration. Their number one, second one deficit on every reason the |
|
|
38:08 | Everyone just do the best chance. think it was asked in terms of |
|
|
38:16 | . Ah Given that I think. huh. I'm saying that by default |
|
|
38:25 | you have uh specified in the natural shirts yet just dealing with. It's |
|
|
38:30 | work by people that the data will shared. So you know whenever index |
|
|
38:37 | that gets they will work on But still there are data on the |
|
|
38:44 | . Yeah. So I'm talking about letters. So rule is please uh |
|
|
38:54 | read them. So and there are as global variables and then you can |
|
|
38:59 | them. Is there carmen reading? if you wanted them to be dedicated |
|
|
39:07 | separate expense and determine inside the so means and I'll talk about. It's |
|
|
39:22 | there's kind of a more concrete example this. That's what you see before |
|
|
39:30 | justice in the superior. You know empty version. You're sick you know |
|
|
39:39 | in front of the portal in order tell father I want to say paralyzed |
|
|
39:46 | then you may get something like And the federal program. And so |
|
|
39:50 | you get in this case of sport for the first Whatever. Durations |
|
|
39:56 | Yes. So the numbers there are a number 1234 the said simplistic but |
|
|
40:05 | can't control also other distribution. They ask for anything that has this kind |
|
|
40:10 | block. Once sharks reflex movements. what? Right. right. Once |
|
|
40:23 | , as I said, she didn't him. But you can also say |
|
|
40:27 | many friends you would like to commands that to set the number of |
|
|
40:33 | And then they always decides to bring this week. And then they're always |
|
|
40:39 | . Thought that disagrees. It does they want, not for us. |
|
|
40:44 | that's the fallacy and economic mm assignments may want to say I want this |
|
|
40:51 | of threats and there's no guarantee that always looks at what seems to be |
|
|
41:02 | because depending on what other parts of code does or it's reducing those shared |
|
|
41:10 | others. Just colds then. So we talked about The processes right from |
|
|
41:19 | 24 code. Of course. So you have they have a right to |
|
|
41:28 | threading enabled. So there's The principle can run for eight fits on a |
|
|
41:36 | stop it And 96 single known because were all sorts of things. So |
|
|
41:44 | know, you ask for more, not together. That's the first thing |
|
|
41:48 | it's very available. But there are parts of the code that uses up |
|
|
41:53 | of the read. So you need ask for a policeman certitude as he's |
|
|
41:58 | in practice. But some of these slots may be taken by other pieces |
|
|
42:04 | the code or something else In this . Uh there was will not give |
|
|
42:09 | 72 but exactly what the c So it's important to when you declare |
|
|
42:17 | . Um cold. And also the a long time functions to figure out |
|
|
42:26 | number of first draft that you can out. So it's kind of you |
|
|
42:32 | the desire of the fall in terms the number of states between something and |
|
|
42:37 | check once again. All right. . So yes. So this is |
|
|
42:48 | the short term instead of building first region and the specific of what we |
|
|
42:54 | here. Carlos sport. Um Yeah instance in the current. Oh simplifying |
|
|
43:03 | motion. So. And of course questions than that talks about is dana |
|
|
43:17 | . Uh huh. What we have . You're trying to paralyze a bunch |
|
|
43:27 | . Yeah like. Yeah. Well . Uh huh. Like try to |
|
|
43:36 | a function has like people have a . Yeah. You've been having |
|
|
43:42 | Well that's up to you to figure what can be paralyzed because they are |
|
|
43:46 | to be paralyzed. Either. We're . That does something is still |
|
|
43:52 | They are not so lucky because again The fact is for example about |
|
|
44:01 | Some simple concept for them in Then try to divide it up. |
|
|
44:09 | Can be divided up paper dependencies Yes. Or that doesn't make things |
|
|
44:17 | wrong. The ordering is not right the different friends because the gondola where |
|
|
44:25 | got to the coffee cold. So the different dresses communicate and share data |
|
|
44:35 | by themselves there's no guarantee you're taking which one gets to the first. |
|
|
44:40 | there's breakfast dependence junior to you basically that today I was reading Confided with |
|
|
44:54 | . Yeah. Combined for Cuban Mm right. So if you're under |
|
|
45:03 | just get their own results and nothing . If you are somewhat more likely |
|
|
45:09 | crashes that this won't get something Yeah. So so that's the problem |
|
|
45:20 | retirement program in developing is the honors sometimes things may happen to fall in |
|
|
45:29 | , you know that's that's not sometimes superstar status do you want to |
|
|
45:45 | So uh it's remember yes posted triple private. Oh. Uh huh. |
|
|
46:01 | pretty much general comment system again. so so that points to go programming |
|
|
46:15 | obviously are clear exhort whether they shared global or whether there just to be |
|
|
46:21 | and now depend on Uh implicit 54 . So here are the common. |
|
|
46:34 | Germans again, exactly with this can shared among the threat and private since |
|
|
46:42 | we get private topics. The first . That's not good bye. This |
|
|
46:52 | of the moment. Now, so things that declared as private allocated memory |
|
|
47:00 | that threat for there is the random but its un initial list. Just |
|
|
47:08 | piece of memory. If you don't sit and assume there will be something |
|
|
47:17 | Z Holtzman will call back. Thanks health conditions. So the first private |
|
|
47:26 | a mechanism so to inherit values. something that is also a global address |
|
|
47:32 | . The first private means that copies values of the goal was placed into |
|
|
47:36 | private space. So then I guess suspected rebels in the global Yeah. |
|
|
47:48 | . Additional souls. So it's assigned value. So that's when you declare |
|
|
47:57 | of memory. Oh it's essentially in up to basically organization. What happens |
|
|
48:05 | it's nice and that's everything to zero it just happens to be whatever was |
|
|
48:11 | there last time there weren't enough. initialized means some through the gap |
|
|
48:17 | Either yourself it's suitable statement that assign to that once it's in the private |
|
|
48:24 | or if you want to work something the global space and that's your starting |
|
|
48:29 | . So then you want to copy with values as well into the private |
|
|
48:36 | . And the first private is this direct point close to make sure that |
|
|
48:44 | inherit simple crime. So and the space means that gets allocated for the |
|
|
48:57 | . And then when the paranoid region the threat and it's over just the |
|
|
49:07 | day. So if you want some it's got unless you export it back |
|
|
49:17 | the building. So that's what the private here, it's a copy |
|
|
49:26 | First pirate copied in. That's part it caught me up the consequences. |
|
|
49:38 | are I'm serious. That's private. so tricky. Huh. And uh |
|
|
49:47 | on threads survive the end of the whereas normally private read pounds and be |
|
|
50:03 | no. Oh, today by singing all of them honestly with us. |
|
|
50:11 | difference between private and threat. They have different scope in terms of |
|
|
50:16 | existence. Oh yeah. So I I'm pretty much top, we mentioned |
|
|
50:28 | of this uh very much so well a number of things could go back |
|
|
50:37 | that's fine. You know, the don't to Australia. That is private |
|
|
50:44 | be careful. So, you they get memory go up and I |
|
|
50:51 | I have some examples. Um, he is the devil for texas Given |
|
|
51:01 | right for five days sequential or global . So that productive. Currently two |
|
|
51:09 | as terrible. That means that all bread than our access to extra stick |
|
|
51:17 | our subdivision. So, so in case they're different threats at all this |
|
|
51:27 | thanks. And it's just on statement similar to the implemented many diets and |
|
|
51:36 | Because it spreads execute next past Uh, so uh world, I |
|
|
51:47 | expect the X value to be at end. So yes, it's for |
|
|
51:54 | . Oh, oh my God. four threats economics as 1 to |
|
|
52:04 | So they want me to me it be that Oh, except it may |
|
|
52:12 | be nine. I don't know, don't have an example. So because |
|
|
52:16 | things and tried to aspect the same . So they now I tried to |
|
|
52:21 | it at the same time. It's going forward. So basically the |
|
|
52:30 | I shouldn't say any number but you not get my Because a couple of |
|
|
52:35 | are 41 1 with some young That's again part of this notion of |
|
|
52:43 | race condition and global variables correct is not necessarily certainty about the outcome. |
|
|
52:57 | and there's something that I already talked the local property. Thanks. |
|
|
53:07 | So the second that Poland is So it is a culture. So |
|
|
53:13 | is no relationship between what it was the front. So the global things |
|
|
53:21 | not get updated. They have a a a the companies private status. |
|
|
53:30 | work for the private parts and the has known our idea what's going |
|
|
53:38 | So it's not that the global array anyway your synchronized. Is it |
|
|
53:44 | So what the hell to separate And there's no updates of the |
|
|
53:51 | That's why I said it's not associated the global it's street coffee, you |
|
|
54:01 | because if your first private dope about other than start because the first private |
|
|
54:07 | you copy what spots in the global . But then The 3rd executes and |
|
|
54:13 | that local thing. The global doesn't . And I cannot make sense because |
|
|
54:22 | use the first private to make sure personal race conditions is also that whatever |
|
|
54:26 | of the thread works on this Right? And I said also so |
|
|
54:37 | first to the end there's nothing, no updates of the global even when |
|
|
54:42 | exit it doesn't say anything from so have explicitly to make sure whatever you |
|
|
54:50 | to carry on outside private region. . Moved into the global share |
|
|
55:03 | So I guess what's wrong with Obviously a lot of blood what's |
|
|
55:12 | So in this case the singer is Goes to four lbs. Uh |
|
|
55:23 | Region Arizona. Uh huh. So uh here I don't believe. |
|
|
55:36 | ? Yeah. But then well, this is that that's his own memory |
|
|
55:44 | of text, the system variable contact . Yeah. How is that? |
|
|
56:03 | . So now Well the only four form Oh or um then without are |
|
|
56:19 | ? But there was nothing to retract ? So now? Well it's uh |
|
|
56:31 | concerns about school so long as Thank you. And the Yes. |
|
|
56:45 | . So because different things. But it's a local company private and |
|
|
56:55 | neither initialized or export. Yeah. some correct. Right? That's just |
|
|
57:14 | of sense questions. Yes. Do want? Oh, okay. Now |
|
|
57:37 | in the right. So really the from just. Yeah. Well, |
|
|
57:56 | I guess this is the first So let's see that's another Yes. |
|
|
58:07 | . So mhm. So here is where yes ass for for sex but |
|
|
58:21 | so confident questions that don't function. huh. Private uh interrupted local but |
|
|
58:41 | an intellectual moment it starts improvement They all start with us saddle up |
|
|
58:54 | and then uh practices using people It is. Uh huh. |
|
|
59:05 | English well four cents. Well Is three integrations in the loop. And |
|
|
59:16 | that have this notion that it does thing of locals in this east Sarah |
|
|
59:22 | to that's santa. One thread people gets the same thing you know |
|
|
59:31 | So now you want to try to out what is concerned. So what |
|
|
59:40 | they going to see that's possible to a home. You say that it's |
|
|
60:00 | to initialize the barrel people there well something that I want to send so |
|
|
60:12 | can start pushing and I guess the dream isn't well I didn't want so |
|
|
60:20 | between us? Zero. Yeah but year you don't get those sitting around |
|
|
60:34 | no. Uh huh. Well and lost but we have to go to |
|
|
60:42 | fresh whole and as for a Is that as you when people yeah |
|
|
60:54 | important. So It was an excellent . And I mean the little here |
|
|
61:01 | a little test. Uh huh. . Right. We're different. So |
|
|
61:09 | it really zero increments. Okay. this is the spirit. So everyone |
|
|
61:18 | be 11. We agree on that this point technological tickle. How about |
|
|
61:29 | one what go on. Okay. why is it one some people never |
|
|
61:46 | that. So I I again so local to the threat. Right. |
|
|
61:54 | uh huh. Uh huh. It updated. Uh zero The Income I |
|
|
62:05 | spots challenge. Is this the units the loop is fun and it's not |
|
|
62:16 | . You so then they received Right? So that this statement doesn't |
|
|
62:22 | executed because of the condition. That's Still remains the one I think it's |
|
|
62:33 | too hard to figure out the next around there. His increments and uh |
|
|
62:38 | . So just to how about the that for oh it's really very different |
|
|
62:51 | the start going off. I Yeah that we were this time. |
|
|
62:59 | huh. Oh what because now that again there and they go, you |
|
|
63:10 | comments around zero and yes position is that would be anything or I'm |
|
|
63:27 | That was the thing. And when get something like this. Yeah designated |
|
|
63:32 | . So but all the news for is to figure out that nice inheritance |
|
|
63:44 | or the first private initialization. What since for the different sites depending on |
|
|
63:51 | this that has a sign and it's . Oh factor of this block. |
|
|
64:07 | . Yes the last time but well terms of so uh huh. |
|
|
64:24 | So he's asking what's going to happen you accept a little block, what's |
|
|
64:29 | to happen to implement the vehicle? . Um so the I think there |
|
|
64:41 | variable but the doctor thinks spent or yes uh because it would not exported |
|
|
64:57 | the school important positive parenting performance from is an example of this last |
|
|
65:22 | Uh huh thankful to the world. on this axis and that on the |
|
|
65:34 | out of it's open variable. Oh this case we have a portal. |
|
|
65:48 | this statement um uh Here whatever is something of and private. It's for |
|
|
66:05 | . Both. No. And uh is uh we have a number on |
|
|
66:21 | expected thank you expect from me Oh. Uh huh. Oh but |
|
|
66:37 | last night. So depending on what fast. Uh Well it's far that |
|
|
66:47 | up the mistress and the r Hopefully side covers yeah global bodies and there |
|
|
66:59 | defensive uh monetary. And that's the with. Uh huh I think that's |
|
|
67:15 | . Simpson in the trenches. So are they? It's the last it's |
|
|
67:23 | that we have seen this because you call. All right. Thank |
|
|
67:35 | Mhm. So it would be. . I don't think that was not |
|
|
67:49 | . Yes. There should be Yes. We should get something outside |
|
|
67:57 | one which was Yes. President. want to verify that things are correct |
|
|
68:06 | uh from in the index ranks but last index that was executed by any |
|
|
68:18 | . Yeah. Alright. So that's example here. Yeah. Same thing |
|
|
68:25 | american dental and private. First private agency. Uh uh All right there |
|
|
68:36 | the president region in this particular We'll see the traditionalist as well. |
|
|
68:42 | uh yeah private. We're both being on that and try to figure out |
|
|
68:57 | I asked him on. So All . So what's the answer the |
|
|
69:07 | So yeah. What? Cool. , staying in shared. Right, |
|
|
69:26 | they will never declare it private. it's a global variable. Uh all |
|
|
69:33 | different expense generated. Don't have Yeah. Do you see in new |
|
|
69:43 | primaries of course, coming the next is what they're and it's a lot |
|
|
69:51 | bizarre. And what, what I after the ceremony. What? |
|
|
70:01 | Mhm. Mhm. Since on the region, what are what start |
|
|
70:10 | I guess? Order. So what's value of a All right, so |
|
|
70:25 | a global variables that will see And I think the global thing and |
|
|
70:28 | was initialized, kind of straightforward and the DNC, there was a sense |
|
|
70:43 | so then I have to figure out the values of them are. There |
|
|
70:49 | a spirit. Oh, initial value the that's become okay. No. |
|
|
71:04 | and I use variables uh and if happens and other copying memory locations, |
|
|
71:12 | that's variable. So, these replicated every have a number of office, |
|
|
71:19 | was another one Or one member of patient should say for both DNC. |
|
|
71:30 | what was the rule in terms of , what can you say about the |
|
|
71:35 | of the song? This is what not initialized since its whatever. Either |
|
|
71:47 | , compiler designed to initialize it or is whatever value was a member |
|
|
71:57 | On the other hand, let's This is copy in value from the |
|
|
72:04 | regions will see should have developed what b is undefined, right. That |
|
|
72:16 | upon entry than upon exit except what that? I know Alicia yeah, |
|
|
72:37 | was a global variable. So if touched a still one or an interest |
|
|
72:45 | then it would be whatever it was the subject, I might be Oh |
|
|
72:54 | they lost. Yeah. Right. . What he's saying that the department |
|
|
73:08 | use one right, because there was global variable so it was never |
|
|
73:13 | So it then as whatever was the and almost and then well let's see |
|
|
73:22 | see what else um Mhm The same there was no last private not another |
|
|
73:28 | or C but exported out just whatever there before regardless what happens to them |
|
|
73:36 | . The value of a, depends happens in the region where is PNC |
|
|
73:40 | matter because of an outlet school. . Is anyone else That's something? |
|
|
73:56 | , so you may have another inside saying what they don't want to. |
|
|
74:02 | ? Uh Yes yes support here. . Uh huh. The portals and |
|
|
74:17 | every move no more. Uh So mm hmm. Point here is |
|
|
74:32 | all the different sects access all the they may want to principle Yeah. |
|
|
74:46 | anyone on the rates that's fine. in this case. Uh huh The |
|
|
74:56 | threads are different so they can access and rehabilitation not the same thing. |
|
|
75:05 | this wouldn't have about next year, would have been from the same part |
|
|
75:10 | real realization even though these local variables profitable or the race conditions. Oh |
|
|
75:24 | . I just at the point he out that by default, oh do |
|
|
75:33 | the city but my I almost uh Otherwise things moving totally ill defined for |
|
|
75:42 | parents, necessary friends all in Probably there were several so just so |
|
|
75:57 | this case um Okay so so once are four pipelines students and a or |
|
|
76:24 | that almost suspended this basically before looks the stipulated that so nothing this |
|
|
76:37 | it's part of all. Uh huh was what's that body? Mhm This |
|
|
76:46 | it's replicated. Oh so also thanks these the second important well okay the |
|
|
76:58 | forum talents that's for real to that after the first or who just replicating |
|
|
77:15 | . Tell me the first part. that's what you're asking. A wind |
|
|
77:20 | , the labor the first assignment of the idea is based on the loops |
|
|
77:31 | spirals and well I have this one all. How about some football? |
|
|
77:38 | second one. So there's different reasons on your phone but makes responsible so |
|
|
77:51 | also play with in terms of thinking do you want to privatization? Uh |
|
|
78:04 | . Yes, very little. Mhm . So I think there is an |
|
|
78:16 | that follows so look at the example it's a little bit more tricky to |
|
|
78:25 | out than a simple example and trump so there's this for example is we |
|
|
78:35 | go through it next time. I to encourage a look at it something |
|
|
78:42 | shared and what's not it's tricky when have to lose that was variables |
|
|
78:50 | Sorry? Uh huh. And that's things come yes, compensation and different |
|
|
79:05 | on and so there was some time up. Mhm That's a question. |
|
|
79:15 | not that emotional. Yeah. Yeah let's talk live and encourages the |
|
|
79:32 | I agree with what the next So yes melissa there more than some |
|
|
79:45 | the different constructs. Yeah. |
|