The psychological characteristics of young people in adolescence and Erlang programming

Adolescence is also called early adulthood, and is between 18 and 35 years old. After a person enters adolescence, the development of the brain has matured both in form and function. With the development of the brain, the ability of dialectical thinking and creative thinking has been developed and improved, and the cognitive ability has entered the best state. Has the following typical psychological characteristics:
(1) The peak of intellectual development. In adolescence, due to the continuous enhancement of brain function, the continuous expansion of living space, and the continuous increase of social practice activities, the cognitive ability has been developed by leaps and bounds. During this period, the sensation and perception are sensitive, the memory and thinking ability are continuously enhanced, and the logic and abstraction Ability gradually dominates, can reflect the relationship and internal relationship of things through analysis, synthesis, abstraction, generalization, reasoning, and judgment, and transition from general logical thinking to dialectical thinking, making more use of theoretical thinking, and independent thinking Sexuality, criticality, and creativity have all improved significantly.
%% Code from
%% Erlang Programming
%% Francecso Cesarini and Simon Thompson
%% O'Reilly, 2008
%% http://oreilly.com/catalog/9780596518189/
%% http://www.erlangprogramming.org/
%% © Francesco Cesarini and Simon Thompson

-module(echo2).
-export([go/0, loop/0]).

go() ->
register(echo, spawn(echo2, loop, [])),
echo ! {self(), hello},
receive
{_Pid, Msg} ->
io:format(“wn”,[Msg])
end.

loop() ->
receive
{From, Msg} ->
From ! {self(), Msg},
loop();
stop ->
true
end.
-module(my_timer).
-export([send_after/2, sleep/1, send/3]).

send_after(Time, Msg) ->
spawn(my_timer, send, [self(),Time,Msg]).

send(Pid, Time, Msg) ->
receive
after
Time ->
Pid ! Msg
end.

sleep(T) ->
receive
after
T -> true
end.Insert picture description here

Guess you like

Origin blog.csdn.net/m0_38127487/article/details/115254638