Download presentation
Presentation is loading. Please wait.
Published byBlaze Turner Modified over 9 years ago
1
LOGO Erlang 11 ACM 王浩然
2
Company Logo concurrency in real world in computer
3
Company Logo concurrency Here, we encounter a quz.
4
Company Logo concurrency x = x+n. 1.mov ax,[bp +x] 2.mov bx,n 3.add ax,bx 4.mov[bp+x],ax multi-process share the registers.
5
Company Logo concurrency If there is a Way or PL supporting this? Yes! COP, Erlang.
6
Company Logo concurrency Let's change a model. The relation of the multi-process to a computer staff to a community
7
Company Logo concurrency Properties: Independent No sharing memory Sending message
8
Company Logo Concurrency Primitives Pid = Spawn(fun) Pid ! Message receive... end
9
Receive Pattern
10
Company Logo Concurrency A simple model Client & Server Sending& Receiving
11
Company Logo rect
12
Company Logo clock What if never receive a message? waiting forever? after
16
Company Logo Other features Variable! no type declaration.
17
Company Logo Variable A strange fact
18
Company Logo Variable What on earth is going on here?? Explain X not a variable = is not an assignment operator Why is this?
19
Company Logo Other features "=", Pattern Matching Operator can apply on storing compound data
20
overload the function:
21
Company Logo Other features Functional Programming function: first class, same as other data types.
23
Company Logo Summary Not totally understanding Still Missed Many Advantage
24
LOGO
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.