Posted by: 藕太黑 on: 九月 22, 2009
当嘴巴成为惊愕的O型,缺乏见识,当心有戚戚焉,缺乏总结,当心理不舒服,缺钱。
老看见些没道理的男女感情总结贴,说得像权利斗争似的,我来贴个我觉得有理的。其中念旧,马屁和不说话几点我个人觉得非常英明且具有操作
Posted by: 藕太黑 on: 九月 16, 2009
首先,大家应该意识到社会保险是比商业保险更为优质的一种保险.. 原因大致如下:
(1)社会保险是国家不以营利为目的而开展的全民福利保障事业.. 而商业保险是要营利的 . . 总体来说商业保险收费比同等规格的社会保险要高不少喔
(2)社会保险保障的方面比一般的商业保险要更多一些.. 商业保险一般只保医疗或养老 .. .. 社会保险一般可以同时保五个险.. 而且在医疗这一块.. 社会保险的优势非常突出
(3)社会保险的标准每年都在不停提高.. 国家每年7月初都会按照职工基本工资进行社保基数调整.. 而且调整的比例还很高..一般每年调高10%以上.. 就是说越往后拿得钱越高 .. 这样做最大的好处就是可以把通货膨胀的影响消除到比较小.. 而商业保险就算也会调整回报.. 但总体也不会比社会保险涨得快
一句话,现在没有参加社会保险的已工作同学请速参加社会保险,已参加商业保险但并未参加社会保险的已工作同学也请速参加社会保险…..
——————开始了————开始了————开始了——
Posted by: 藕太黑 on: 九月 16, 2009
| General Shortcut Keys | |
| Alt + F1 | Opens the Applicantions Menu . |
| Alt + F2 | Displays the Run Application dialog. |
| Print Screen | Takes a screenshot. |
| Alt + Print Screen | Takes a screenshot of the window that has focus. |
| Ctrl + Alt + right arrow | Switches to the workspace to the right of the current workspace. |
| Ctrl + Alt + left arrow | Switches to the workspace to the left of the current workspace. |
| Ctrl + Alt + up arrow | Switches to the workspace above the current workspace. |
| Ctrl + Alt + down arrow | Switches to the workspace below the current workspace. |
| Ctrl + Alt + d | Minimizes all windows, and gives focus to the desktop. |
| F1 | Starts the online help browser, and displays appropriate online Help. |
| Window Shortcut Keys | |
| Alt + Tab | Switches between windows. When you use these shortcut keys, a list of windows that you can select is displayed. Release the keys to select a window. |
| Alt + Esc | Switches between windows in reverse order. Release the keys to select a window. |
| F10 | Opens the first menu on the left side of the menubar. |
| Alt + spacebar | Opens the Window Menu . |
| Arrow keys | Moves the focus between items in a menu. |
| Return | Chooses a menu item. |
| Esc | Closes an open menu. |
| Ctrl + Alt + right arrow | Switches to the workspace to the right of the current workspace. |
| Ctrl + Alt + left arrow | Switches to the workspace to the left of the current workspace. |
| Ctrl + Alt + up arrow | Switches to the workspace above the current workspace. |
| Ctrl + Alt + down arrow | Switches to the workspace below the current workspace. |
| Ctrl + Alt + d | Minimizes all windows, and gives focus to the desktop. |
| Panel Shortcut Keys | |
| Ctrl + Alt + Tab | Switches the focus between the panels and the desktop. When you use these shortcut keys, a list of items that you can select is displayed. Release the keys to select an item. |
| Ctrl + Alt + Esc | Switches the focus between the panels and the desktop. Release the keys to select an item. |
| Ctrl + F10 | Opens the popup menu for the selected panel. |
| Tab | Switches the focus between objects on a panel. |
| Return | Chooses the selected panel object or menu item. |
| Shift + F10 | Opens the popup menu for the selected panel object. |
| Arrow keys | Moves the focus between items in a menu. Moves the focus between interface items in an applet also. |
| Esc | Closes an open menu. |
| F10 | Opens the Applications menu from the Menu Bar , if the Menu Bar is in a panel. |
| Application Shortcut Keys | |
| Ctrl + N | New |
| Ctrl + X | Cut |
| Ctrl + C | Copy |
| Ctrl + V | Paste |
| Ctrl + Z | Undo |
| Ctrl + S | Save |
| Ctrl + Q | Quit |
Posted by: 藕太黑 on: 九月 11, 2009
通过USB线刷机
用SD卡刷机方法
http://forum.xda-developers.com/showthread.php?t=334100
Posted by: 藕太黑 on: 九月 10, 2009
本质上是 进程间通信(inter-process communication)(IPC)的一个实现
Posted by: 藕太黑 on: 九月 10, 2009
Posted by: 藕太黑 on: 九月 10, 2009
Posted by: 藕太黑 on: 九月 9, 2009
#include
#include
#include
void *thread_function(void *arg) {
int i;
for ( i=0; i<20; i++) {
printf("Thread says hi!\n");
sleep(1);
}
return NULL;
}
int main(void) {
//main() 中声明了变量 mythread,类型是 pthread_t。pthread_t 类型在 pthread.h 中定义,通常称为“线程 id”(缩写为 "tid")。可以认为它是一种线程句柄。
pthread_t mythread;
//调用 pthread_create 函数创建一个真实活动的线程。
//不要因为 pthread_create() 在 "if" 语句内而受其迷惑。
//由于 pthread_create() 执行成功时返回零而失败时则返回非零值,将 pthread_create() 函数调用放在 if() 语句中只是为了方便地检测失败的调用。
//第一个参数 &amp;mythread 是指向 mythread 的指针。
//第二个参数当前为 NULL,可用来定义线程的某些属性。由于缺省的线程属性是适用的,只需将该参数设为 NULL。
//第三个参数是新线程启动时调用的函数名。
//注意 thread_function() 接受 void * 作为参数,同时返回值的类型也是 void *。这表明可以用 void * 向新线程传递任意类型的数据,新线程完成时也可返回任意类型的数据。那如何向线程传递一个任意参数?很简单。只要利用 pthread_create() 中的第四个参数。本例中,因为没有必要将任何数据传给微不足道的 thread_function(),所以将第四个参数设为 NULL。
if ( pthread_create( &amp;mythread, NULL, thread_function, NULL) ) {
printf("error creating thread.");
abort();
}
//pthread_join() 将两个线程合并为一个线程
//第一个参数是 tid mythread,第二个参数是指向 void 指针的指针。如果 void 指针不为 NULL,pthread_join 将线程的 void * 返回值放置在指定的位置上。由于我们不必理会 thread_function() 的返回值,所以将其设为 NULL.
if ( pthread_join ( mythread, NULL ) ) {
printf("error joining thread.");
abort();
}
exit(0);
}
//在 pthread_create() 成功返回之后,程序将包含两个线程。
//如果编写的程序根本没有使用 POSIX 线程,则该程序是单线程的(这个单线程称为“主”线程)。创建一个新线程之后程序总共就有两个线程了。
Posted by: 藕太黑 on: 九月 9, 2009
线程:将应用程序划分成一个或多个同时运行的任务。
与传统的多任务进程 之间的区别在于:线程共享的是单个进程的状态信息,并会直接共享内存和其他资源。
线程模型
Linux”混合”线程模型:
当核内既支持进程也支持线程时,就可以实现线程-进程的”多对多”模型,即一个进程的某个线程由核内调度,而同时它也可以作为用户级线程池的调度者,选择合适的用户级线程在其空间中运行。
在核外实现的线程又可以分为”一对一”、”多对一”两种模型。
“一对一”:一个核心进程(也许是轻量进程)对应一个线程,将线程调度等同于进程调度,交给核心完成。
“多对一”:完全在核外实现多线程,调度也在用户态完成,单纯的用户级线程模型的实现方式。
最新评论