Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

面试篇 #4

Open
yeshan333 opened this issue Mar 27, 2020 · 9 comments
Open

面试篇 #4

yeshan333 opened this issue Mar 27, 2020 · 9 comments

Comments

@yeshan333
Copy link
Owner

yeshan333 commented Mar 27, 2020

@yeshan333
Copy link
Owner Author

位运算

左移,<<:乘 pow(2, n)
右移,>>:整除 pow(2,n)

>>> 8>>2
2
>>> 8<<2
32

@ssmath
Copy link

ssmath commented Apr 11, 2020

@yeshan333
Copy link
Owner Author

@yeshan333
Copy link
Owner Author

@yeshan333
Copy link
Owner Author

堆、栈各种解释:Stack的三种含义

每个线程分配一个stack,每个进程分配一个heap,也就是说,stack是线程独占的,heap是线程共用的。此外,stack创建的时候,大小是确定的,数据超过这个大小,就发生stack overflow错误,而heap的大小是不确定的,需要的话可以不断增加。

@yeshan333
Copy link
Owner Author

@yeshan333
Copy link
Owner Author

1 similar comment
@yeshan333
Copy link
Owner Author

@yeshan333
Copy link
Owner Author

性能测试,95% 响应时间:https://testerhome.com/topics/11423

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants