The document discusses threads and thread dumps in Tomcat. It explains what threads are, how thread settings are configured in Tomcat connectors and executors, and how to generate thread dumps through commands or JVisualVM for troubleshooting purposes. Configuration parameters for threads like maxThreads, minSpareThreads, and maxSpareThreads are also covered.
The document discusses threads and thread dumps in Tomcat. It explains what threads are, how thread settings are configured in Tomcat connectors and executors, and how to generate thread dumps through commands or JVisualVM for troubleshooting purposes. Configuration parameters for threads like maxThreads, minSpareThreads, and maxSpareThreads are also covered.
1. 표기법을 아시나요?
• 표기법에 대하여 정답은 없으면 여러 단체가 권고할 뿐이다.
• 다음에 설명하는 표기법도 일반적으로 사용되고 있는 표기법을 나
타내고 있다.
2. 표기법을 아시나요?
• 낙타 표기법
– 낙타표기법은 단어의 맨 앞 글자를 대문자로 표기하는 방법인데 낙타와 비슷하
다 하여 붙여진 이름이다.
– 대상에 따라 표기법이 약간 차이가 있다.
– 클래스는 첫 단어의 첫 글자를 대문자로 표기하고 다음단어부터는 첫 글자를 대
문자로 표기한다.
– 변수 또는 메소드는 첫 단어의 첫 글자는 소문자로 표기하고 다음단어부터는 첫
글자를 대문자로 표기한다.’
– ex) public void TestClass(), int dynamicVar;
3. 표기법을 아시나요?
• 헝가리안 표기법
– 변수표기법에서 주로 사용되는 방법이다.
– 변수에 이름을 붙일 때 그 이름 앞에 해당 변수의 데이터형의 약어를 붙이는 것
이다.
– ex) int iVariable, INTEGER C_NAME;
• 언더바 표기법
– 언더바 표기법은 단어와 단어 사이에 ‘_’로 구분을 짓는 표기법이다.
– ex) int MAX_COUNT = 10;
4. 표기법을 아시나요?
• 변수
– 변수는 명사로 시작한다.
– 낙타표기법을 주로 사용한다.
– ex) int integerVariable;
• 상수
– 상수는 모두 대문자로 작성하고, 언더바 표기법을 주로 사용한다.
– 상수표기에 대한 방침은 따로 없으면 C언어에서의 작성법을 기준으로 삼고 있다.
– 생성과 동시에 초기화 값을 입력한다.
– ex) int MAX_COUNT = 10;
5. 표기법을 아시나요?
• 함수
– 함수는 동사로 시작한다.
– 변수와 마찬가지로 낙타표기법을 사용한다.
– ex) function setCount ()
• 생성자
– 생성자는 첫문자가 대문자로 시작한다.
– ex) function FruitArray (apple, strawberry, orange) {
– this.apple = apple;
– this.strawberry = strawberry;
– this.orange = orange;
– }