About - The Terminal

      Today is Saturday.In the afternoon, after ate some noodles,I came back to apartment.When I had been layed on the bed,I thougnt about what to do next. The computer was working,so I opened the movie folder by occation.

About - The Terminal - 石頭 - 納億攆,我們讀層揍過

 

      Uha,I found there are a movie which I hadn't saw over last Sunday,and the name of the movie is "The Terminal",and the Chinese mean is "The Last Station Of The Happier ".

      I was a common man,a commom

 

can't more that common.Like all of the people,when I was a younger,I have a dream,I want to be a colloge student , just like many parents hoping. And after the entrance

 

 examination for college ,I entered the school,althought it was not very famous, and at persent ,I still stay here.I don't care that,the most important things I was caring about was how to be a success man wherever you go,whatever you do,and whenever you come and leave.

     On there,I know a lot of people.Such as the classments,the master,the teachers, the leaders ,even some I can't name it.Everyday,I study many things, except for the major classs,  more like the different life ways,the curious societyphenomenons, the personality to be a good man and so on also the knowledge I must study from them.And I always do it without tired.

 

       Every morening when I was woked up by the noisy of the alarm clock,the things which I did was to turn it down , and coverd my head by the cover,then started complenting :

       Why not sleep continuely,why not suffer the pain when others was having a sweet dream.I  don't know the reason,just like you like even fall in love with a girl without any reason.It is just the road which

 

 you have choiced,and just let it alone.

      The most important thing is going to up,washing and brushing,taking your computer or book to the class,wainting your teacher and your friends even your book to send knowledge to you , And conveniently to have vision of the future, may be several years , you can have...

      OK,that's all.

 

      Next,started talking about the movie.The terminal,about the the plot of the play,I don't want to talk many.And I just like to talk some thing about the beautiful girl.May be you will laugh at me,say I'm a common man who likes the beautiful girl even thinks things use the eys.Yes,congraduation to you,you are right,and your guess was right.  When I was a younger I dream to merry with a beautiful girl or find a beautiful girl friends. And even now,I still think it's a wise option. The only reason was just I'm a common peopel,I'm not the hero,not the famous people,not the rich price,not  handsome man.

     More and more,I just find having no time to think all about this.What is the rich , what's the beautiful girl ,what's the happier life.It's just suffer the pain.I always think the God was fair.When you suffer many,you will have many,the versa is also right.The story from the movie maybe is true ,but that's just to fit the the leading character, and maybe you can try the way which the character used.  

   

 

 So,just started to suffer the pain,the more the more,you know it.

转载于:https://www.cnblogs.com/shihao316558512/archive/2011/12/10/9737074.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Here is an example code that simulates round-robin algorithm for process scheduling using fork() function in C++: ```cpp #include <iostream> #include <unistd.h> #include <sys/wait.h> using namespace std; const int MAX_PROCESSES = 15; const int QUANTUM = 2; int main() { int arrival_time[MAX_PROCESSES] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}; int burst_time[MAX_PROCESSES] = {6, 5, 4, 3, 2, 1, 6, 5, 4, 3, 2, 1, 6, 5, 4}; int remaining_time[MAX_PROCESSES]; int end_time[MAX_PROCESSES]; int total_time = 0, avg_time = 0; for (int i = 0; i < MAX_PROCESSES; i++) { remaining_time[i] = burst_time[i]; } while (true) { bool done = true; for (int i = 0; i < MAX_PROCESSES; i++) { if (remaining_time[i] > 0) { done = false; if (remaining_time[i] > QUANTUM) { total_time += QUANTUM; remaining_time[i] -= QUANTUM; } else { total_time += remaining_time[i]; remaining_time[i] = 0; end_time[i] = total_time; } } } if (done) { break; } } avg_time = total_time / MAX_PROCESSES; cout << "Process\tArrival Time\tBurst Time\tEnd Time" << endl; for (int i = 0; i < MAX_PROCESSES; i++) { cout << i+1 << "\t\t" << arrival_time[i] << "\t\t" << burst_time[i] << "\t\t" << end_time[i] << endl; } cout << "Average Execution Time: " << avg_time << endl; return 0; } ``` In this code, we have defined the arrival time and burst time for each process and simulated the round-robin algorithm using a while loop. We have also calculated the end time and average execution time for each process. Finally, we have printed the scheduling situation for each process and the average execution time to the terminal. Note that the fork() function is not used in this code as it is not necessary for simulating the round-robin algorithm. However, it can be used to create child processes for each process and simulate their execution.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值