Funny ratio sleep ranking method and sleep Ranking Method

Source: Internet
Author: User

Funny ratio sleep ranking method and sleep Ranking Method

Sleep sorting means that the sorting elements are used as the sleep time of the thread, and will be output after sleep ~

The larger the element, the later the waking up, the later the output, and then the sorting is not completed?


Package com. lean; the larger the value of the element in the public class SleepSort {/** array, the longer the sleep time. When sleep is short, * sort is output first. The actual meaning of sorting is not great and the time is too long. Happy! */public static void main (String [] args) {int a [] = {5, 6, 7, 1, 3, 2, 4, 9, 8 }; // create a sleep thread SortThread t [] = new SortThread [. length]; // initialize the sleep thread for (int I = 0; I <t. length; I ++) {t [I] = new SortThread (a [I]); t [I]. start () ;}}// sortThread is a dynamic class. When used as an internal class, add static. Otherwise, it will be placed as an external class ~~ Ha class SortThread extends Thread {int MS; public SortThread (int MS) {this. ms = ms;} @ Overridepublic void run () {super. run (); try {sleep (ms * 10 + 10);} catch (InterruptedException e) {// TODO Auto-generated catch blocke. printStackTrace ();} System. out. println (MS );}}



College Entrance Examination sleep

Improve sleep quality? .

We know that sleep is very important to the health of the brain. Generally, a person needs more than 8 hours of sleep, and must ensure high quality. If the sleep time is insufficient or the quality is not high, it will have a negative impact on the brain, and the fatigue of the brain will be difficult to recover, seriously affecting the function of the brain. If you have insufficient sleep or sleep quality is poor, you should increase the sleep time, such as taking a nap in summer, and try to improve your sleep status.
In general, sleep is the main way to eliminate brain fatigue. If you have insufficient sleep for a long time or sleep quality is too poor, it will seriously affect the function of the brain. Otherwise, very smart people will become confused. Many people suffer from neurasthenia and other diseases, which are often caused by severe sleep insufficiency.

In short, a person's No. 1 Middle School spends more than 1/3 of his time sleeping. A political party's good sleep, its physiological functions can be adjusted, and the balance of the nervous system can be maintained. This is an important part of life. Poor sleep, lack of, the next day will be wrong brain swelling, full body weakness. Sleep is closely related to health work and learning.

The following aspects can improve sleep quality:

* Moderate sleep

1. One of our important points is: Sleep. In many books, adults generally go to bed 7-8 hours a day. But recently, American psychology professor James ?? Dr. Mas pointed out that it is not enough for a person to sleep for 6-7 hours at night. His study on sleep shows that only 8 hours of sleep can peak human function. Therefore, what is "moderate" is mainly based on "mental and physical recovery.

Human sleep is divided into slow eye sleep and quick eye sleep. High-concentration eye-catching sleep occurs in the last phase of eye-catching sleep, including memory storage, tissue maintenance, information sorting, and new learning and performance, fast eye movement usually occurs at the back of the 8-hour delayed period and lasts for about 90 minutes. Although we may not be aware of it, most of us do not have adequate sleep, which not only reduces the quality of life, but also causes disease.

To make up for this general Sleep deficiency, Dr. Mas advocates "nap ". This kind of NAP refers to taking a nap for another 20 minutes after the formal sleep every day, which is much better than going to bed early at night.

We particularly emphasize that although primary and secondary school students now say "Reducing the burden", they are not easy due to various test pressures, and many people do not have enough time to sleep. Compared with the past, it is actually bright and dark. In fact, both the society and the family are not worth the candle. We believe that learning can be better only when you have a good sleep. Sleep does not affect the future: Sleep time must be guaranteed!

* Sleeping environment

If you want to have a good night's sleep, it is very important to pay attention to the three taboos before going to bed.

It is recommended that:

Take a walk before going to bed.

Ziyan hidden book ?? Zhishu said: "When you fall asleep, go around the room for thousands of steps and start to rest ...... Gash is a God of labor, while Lao is a God of life ."

There should be an appropriate environment for sleeping, mainly a quiet bedroom and comfortable bedding.

Ventilation is an important condition for the bedroom, because fresh air is more important than anything else. Whether the outdoor temperature is high or low, the window should be opened before going to bed. Choose a comfortable bed. Generally, it is recommended that you use a moderate soft or soft brown bed or a cork. The hard and soft pillows should be moderate, and try to be warm in winter or summer.

You must have the correct sleeping posture.

It is generally suggested that the right side lie, slightly curved legs, the body naturally relax, one hand Bend elbow to rest before, one hand naturally put on the thigh.

Develop good sleep habits.

For sleep every night or sleep during the day, try to keep yourself in bed and get up at the same time. Holidays are no exception. Regular and moderate actions are required.

* Adapt to the biological clock

If we get up on time every day and regularly greet the sun in the morning, your biological clock will run on time. Research shows that this is one of the key elements to improve sleep quality.

One of the factors that affect the operation of the biological clock is the body temperature. Studies have proved that human temperature fluctuations have a great impact on the clock rhythm. A person's temperature drop is prone to sleep, which is an effective way to adjust the biological clock by using the temperature. If the temperature adjustment is out of control, it will cause a disorder in the sleeping biological clock. There are many ways to control body temperature, such as taking a bath before going to bed or taking 20 minutes of aerobic exercise before going to bed.

In short, after the formation of habits, people will... the rest of the full text>

College Entrance Examination sleep

When I took the college entrance examination, I had serious sleep insufficiency, and the last class in the morning was sleepy. I went to bed after and got up at AM.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.