青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 40, 文章 - 0, 評論 - 9, 引用 - 0
數(shù)據(jù)加載中……

Linux下多線程編程詳解

http://www.yuanma.org/data/2007/0921/article_2859.htm

線程(thread)技術早在60年代就被提出,但真正應用多線程到操作系統(tǒng)中去,是在80年代中期,solaris是這方面的佼佼者。傳統(tǒng)的Unix也支持線程的概念,但是在一個進程(process)中只允許有一個線程,這樣多線程就意味著多進程。
現(xiàn)在,多線程技術已經被許多操作系統(tǒng)所支持,包括Windows/NT,當然,也包括Linux。

  為什么有了進程的概念后,還要再引入線程呢?使用多線程到底有哪些好處?什么的系統(tǒng)應該選用多線程?我們首先必須回答這些問題。

使用多線程的理由之一是和進程相比,它是一種非常"節(jié)儉"的多任務操作方式。我們知道,在Linux系統(tǒng)下,啟動一個新的進程必須分配給它獨立的地址空 間,建立眾多的數(shù)據(jù)表來維護它的代碼段、堆棧段和數(shù)據(jù)段,這是一種"昂貴"的多任務工作方式。而運行于一個進程中的多個線程,它們彼此之間使用相同的地址 空間,共享大部分數(shù)據(jù),啟動一個線程所花費的空間遠遠小于啟動一個進程所花費的空間,而且,線程間彼此切換所需的時間也遠遠小于進程間切換所需要的時間。 據(jù)統(tǒng)計,總的說來,一個進程的開銷大約是一個線程開銷的30倍左右,當然,在具體的系統(tǒng)上,這個數(shù)據(jù)可能會有較大的區(qū)別。

  使用多線程 的理由之二是線程間方便的通信機制。對不同進程來說,它們具有獨立的數(shù)據(jù)空間,要進行數(shù)據(jù)的傳遞只能通過通信的方式進行,這種方式不僅費時,而且很不方 便。線程則不然,由于同一進程下的線程之間共享數(shù)據(jù)空間,所以一個線程的數(shù)據(jù)可以直接為其它線程所用,這不僅快捷,而且方便。當然,數(shù)據(jù)的共享也帶來其他 一些問題,有的變量不能同時被兩個線程所修改,有的子程序中聲明為static的數(shù)據(jù)更有可能給多線程程序帶來災難性的打擊,這些正是編寫多線程程序時最 需要注意的地方。

  除了以上所說的優(yōu)點外,不和進程比較,多線程程序作為一種多任務、并發(fā)的工作方式,當然有以下的優(yōu)點:

  1) 提高應用程序響應。這對圖形界面的程序尤其有意義,當一個操作耗時很長時,整個系統(tǒng)都會等待這個操作,此時程序不會響應鍵盤、鼠標、菜單的操作,而使用多線程技術,將耗時長的操作(time consuming)置于一個新的線程,可以避免這種尷尬的情況。

  2) 使多CPU系統(tǒng)更加有效。操作系統(tǒng)會保證當線程數(shù)不大于CPU數(shù)目時,不同的線程運行于不同的CPU上。

  3) 改善程序結構。一個既長又復雜的進程可以考慮分為多個線程,成為幾個獨立或半獨立的運行部分,這樣的程序會利于理解和修改。

  下面我們先來嘗試編寫一個簡單的多線程程序。

  簡單的多線程編程

Linux系統(tǒng)下的多線程遵循POSIX線程接口,稱為pthread。編寫Linux下的多線程程序,需要使用頭文件pthread.h,連接時需要 使用庫libpthread.a。順便說一下,Linux下pthread的實現(xiàn)是通過系統(tǒng)調用clone()來實現(xiàn)的。clone()是Linux所特 有的系統(tǒng)調用,它的使用方式類似fork,關于clone()的詳細情況,有興趣的讀者可以去查看有關文檔說明。下面我們展示一個最簡單的多線程程序 pthread_create.c。


一個重要的線程創(chuàng)建函數(shù)原型:
#include <pthread.h>
int pthread_create(pthread_t *restrict tidp,const pthread_attr_t *restrict attr, void *(*start_rtn)(void),void *restrict arg);

    返回值:若是成功建立線程返回0,否則返回錯誤的編號
    形式參數(shù):
                pthread_t *restrict tidp 要創(chuàng)建的線程的線程id指針
                const pthread_attr_t *restrict attr 創(chuàng)建線程時的線程屬性
                void* (start_rtn)(void) 返回值是void類型的指針函數(shù)
                void *restrict arg   start_rtn的行參
                
例程1:                               
    功能:創(chuàng)建一個簡單的線程
    程序名稱:pthread_create.c         
/********************************************************************************************
**    Name:pthread_create.c
**    Used to study the multithread programming in Linux OS
**    Author:zeickey
**    Date:2006/9/16       
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/

#include <stdio.h>
#include <pthread.h>

void *myThread1(void)
{
    int i;
    for (i=0; i<100; i++)
    {
        printf("This is the 1st pthread,created by zieckey.\n");
        sleep(1);//Let this thread to sleep 1 second,and then continue to run
    }
}

void *myThread2(void)
{
    int i;
    for (i=0; i<100; i++)
    {
        printf("This is the 2st pthread,created by zieckey.\n");
        sleep(1);
    }
}

int main()
{
    int i=0, ret=0;
    pthread_t id1,id2;
   
    ret = pthread_create(&id2, NULL, (void*)myThread1, NULL);
    if (ret)
    {
        printf("Create pthread error!\n");
        return 1;
    }
   
    ret = pthread_create(&id2, NULL, (void*)myThread2, NULL);
    if (ret)
    {
        printf("Create pthread error!\n");
        return 1;
    }
   
    pthread_join(id1, NULL);
    pthread_join(id2, NULL);
   
    return 0;
}


  我們編譯此程序:
# gcc pthread_create.c -lpthread

因為pthread的庫不是linux系統(tǒng)的庫,所以在進行編譯的時候要加上-lpthread,否則編譯不過,會出現(xiàn)下面錯誤
thread_test.c: 在函數(shù) ‘create’ 中:
thread_test.c:7: 警告: 在有返回值的函數(shù)中,程序流程到達函數(shù)尾
/tmp/ccOBJmuD.o: In function `main':thread_test.c:(.text+0x4f):對‘pthread_create’未定義的引用
collect2: ld 返回 1

  運行,我們得到如下結果:
# ./a.out
This is the 1st pthread,created by zieckey.
This is the 2st pthread,created by zieckey.
This is the 1st pthread,created by zieckey.
This is the 2st pthread,created by zieckey.
This is the 2st pthread,created by zieckey.
This is the 1st pthread,created by zieckey.
....

兩個線程交替執(zhí)行。
此例子介紹了創(chuàng)建線程的方法。
下面例子介紹向線程傳遞參數(shù)。


例程2:
    功能:向新的線程傳遞整形值
    程序名稱:pthread_int.c
/********************************************************************************************
**    Name:pthread_int.c
**    Used to study the multithread programming in Linux OS
**    Pass a parameter to the thread.
**    Author:zeickey
**    Date:2006/9/16       
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/

#include <stdio.h>
#include <pthread.h>
#include <unistd.h>

void *create(void *arg)
{
    int *num;
    num=(int *)arg;
    printf("create parameter is %d \n",*num);
    return (void *)0;
}
int main(int argc ,char *argv[])
{
    pthread_t tidp;
    int error;
   
    int test=4;
    int *attr=&test;
   
    error=pthread_create(&tidp,NULL,create,(void *)attr);

    if(error)
        {
        printf("pthread_create is created is not created ... \n");
        return -1;
        }
    sleep(1);
    printf("pthread_create is created ...\n");
    return 0;       
}


    編譯方法:

gcc -lpthread pthread_int.c -Wall


    執(zhí)行結果:

create parameter is 4
pthread_create is created is  created ...


    例程總結:
    可以看出來,我們在main函數(shù)中傳遞的整行指針,傳遞到我們新建的線程函數(shù)中。
    在上面的例子可以看出來我們向新的線程傳入了另一個線程的int數(shù)據(jù),線程之間還可以傳遞字符串或是更復雜的數(shù)據(jù)結構。
例程3:
    程序功能:向新建的線程傳遞字符串
        程序名稱:pthread_string.c
/********************************************************************************************
**    Name:pthread_string.c
**    Used to study the multithread programming in Linux OS
**    Pass a ‘char*‘ parameter to the thread.
**    Author:zeickey
**    Date:2006/9/16       
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>

void *create(void *arg)
{
    char *name;
    name=(char *)arg;
    printf("The parameter passed from main function is %s  \n",name);
    return (void *)0;
}

int main(int argc, char *argv[])
{
    char *a="zieckey";
    int error;
    pthread_t tidp;

    error=pthread_create(&tidp, NULL, create, (void *)a);

    if(error!=0)
    {
        printf("pthread is not created.\n");
        return -1;
    }
    sleep(1);
    printf("pthread is created... \n");
    return 0;
}   

  編譯方法:

gcc -Wall pthread_string.c -lpthread


    執(zhí)行結果:
The parameter passed from main function is zieckey 
pthread is created...


    例程總結:
    可以看出來main函數(shù)中的字符串傳入了新建的線程中。

例程4:
    程序功能:向新建的線程傳遞字符串
        程序名稱:pthread_struct.c
/********************************************************************************************
**    Name:pthread_struct.c
**    Used to study the multithread programming in Linux OS
**    Pass a ‘char*‘ parameter to the thread.
**    Author:zeickey
**    Date:2006/9/16       
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>

struct menber
{
    int a;
    char *s;
};

void *create(void *arg)
{
    struct menber *temp;
    temp=(struct menber *)arg;
    printf("menber->a = %d  \n",temp->a);
    printf("menber->s = %s  \n",temp->s);
    return (void *)0;
}

int main(int argc,char *argv[])
{
    pthread_t tidp;
    int error;
    struct menber *b;
    b=(struct menber *)malloc( sizeof(struct menber) );
    b->a = 4;
    b->s = "zieckey";

    error = pthread_create(&tidp, NULL, create, (void *)b);

    if( error )
    {
        printf("phread is not created...\n");
        return -1;
    }
    sleep(1);
    printf("pthread is created...\n");
    return 0;
}

  編譯方法:

gcc -Wall pthread_struct.c -lpthread


    執(zhí)行結果:
menber->a = 4 
menber->s = zieckey 
pthread is created...

    例程總結:
    可以看出來main函數(shù)中的一個結構體傳入了新建的線程中。
    線程包含了標識進程內執(zhí)行環(huán)境必須的信息。他集成了進程中的所有信息都是對線程進行共享的,包括文本程序、程序的全局內存和堆內存、棧以及文件描述符。
   

例程5:
    程序目的:驗證新建立的線程可以共享進程中的數(shù)據(jù)
    程序名稱:pthread_share.c 

/********************************************************************************************
**    Name:pthread_share_data.c
**    Used to study the multithread programming in Linux OS
**    Pass a ‘char*‘ parameter to the thread.
**    Author:zeickey
**    Date:2006/9/16       
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>

static int a=4;
void *create(void *arg)
{
    printf("new pthread ... \n");
    printf("a=%d  \n",a);
    return (void *)0;
}

int main(int argc,char *argv[])
{
    pthread_t tidp;
    int error;
   
    a=5;

    error=pthread_create(&tidp, NULL, create, NULL);

    if(error!=0)
    {
        printf("new thread is not create ... \n");
        return -1;
    }
   
    sleep(1);
   
    printf("new thread is created ... \n");
    return 0;
}
   
  編譯方法:

gcc -Wall pthread_share_data.c -lpthread


    執(zhí)行結果:
new pthread ...
a=5 
new thread is created ...


    例程總結:
可以看出來,我們在主線程更改了我們的全局變量a的值的時候,我們新建立的線程則打印出來了改變的值,可以看出可以訪問線程所在進程中的數(shù)據(jù)信息。
2、線程的終止

    如果進程中任何一個線程中調用exit,_Exit,或者是_exit,那么整個進程就會終止,
    與此類似,如果信號的默認的動作是終止進程,那么,把該信號發(fā)送到線程會終止進程。
    線程的正常退出的方式:
       (1) 線程只是從啟動例程中返回,返回值是線程中的退出碼
       (2) 線程可以被另一個進程進行終止
       (3) 線程自己調用pthread_exit函數(shù)
    兩個重要的函數(shù)原型:

#include <pthread.h>
void pthread_exit(void *rval_ptr);
/*rval_ptr 線程退出返回的指針*/

int pthread_join(pthread_t thread,void **rval_ptr);
   /*成功結束進程為0,否則為錯誤編碼*/


    例程6
    程序目的:線程正常退出,接受線程退出的返回碼
    程序名稱:pthread_exit.c

/********************************************************************************************
**    Name:pthread_exit.c
**    Used to study the multithread programming in Linux OS
**    A example showing a thread to exit and with a return code.
**    Author:zeickey
**    Date:2006/9/16        
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/

#include <stdio.h>
#include <pthread.h>
#include <unistd.h>

void *create(void *arg)
{
    printf("new thread is created ... \n");
    return (void *)8;
}

int main(int argc,char *argv[])
{
    pthread_t tid;
    int error;
    void *temp;

    error = pthread_create(&tid, NULL, create, NULL);

    if( error )
    {
        printf("thread is not created ... \n");
        return -1;
    }
    error = pthread_join(tid, &temp);

    if( error )
    {
        printf("thread is not exit ... \n");
        return -2;
    }
    
    printf("thread is exit code %d \n", (int )temp);
    return 0;
}

  編譯方法:

gcc -Wall pthread_exit.c -lpthread


    執(zhí)行結果:
new thread is created ...
thread is exit code 8

    例程總結:
可以看出來,線程退出可以返回線程的int數(shù)值。線程退出不僅僅可以返回線程的int數(shù)值,還可以返回一個復雜的數(shù)據(jù)結構。

    例程7
    程序目的:線程結束返回一個復雜的數(shù)據(jù)結構
    程序名稱:pthread_return_struct.c
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>

struct menber
{
    int a;
    char *b;
}temp={8,"zieckey"};
void *create(void *arg)
{
    printf("new thread ... \n");
    return (void *)&temp;
}

int main(int argc,char *argv[])
{
    int error;
    pthread_t tid;
    struct menber *c;

    error = pthread_create(&tid, NULL, create, NULL);
   
    if( error )
    {
        printf("new thread is not created ... \n");
        return -1;
    }
    printf("main ... \n");

    error = pthread_join(tid,(void *)&c);

    if( error )
    {
        printf("new thread is not exit ... \n");
        return -2;
    }
    printf("c->a = %d  \n",c->a);
    printf("c->b = %s  \n",c->b);
    sleep(1);
    return 0;
}


  編譯方法:

gcc -Wall pthread_return_struct.c -lpthread


    執(zhí)行結果:

main ...
new thread ...
c->a = 8
c->b = zieckey


例程總結:
一定要記得返回的數(shù)據(jù)結構要是在這個數(shù)據(jù)要返回的結構沒有釋放的時候應用,
如果數(shù)據(jù)結構已經發(fā)生變化,那返回的就不會是我們所需要的,而是臟數(shù)據(jù)
3、線程標識

    函數(shù)原型:
   
#include <pthread.h>
pthread_t pthread_self(void);

pid_t getpid(void);
    getpid()用來取得目前進程的進程識別碼,函數(shù)說明

    例程8
    程序目的:實現(xiàn)在新建立的線程中打印該線程的id和進程id
    程序名稱:pthread_id.c
  
/********************************************************************************************
**    Name:pthread_id.c
**    Used to study the multithread programming in Linux OS.
**    Showing how to get the thread's tid and the process's pid.
**    Author:zeickey
**    Date:2006/9/16       
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/
#include <stdio.h>
#include <pthread.h>
#include <unistd.h> /*getpid()*/

void *create(void *arg)
{
    printf("New thread .... \n");
    printf("This thread's id is %u  \n", (unsigned int)pthread_self());
    printf("The process pid is %d  \n",getpid());
    return (void *)0;
}

int main(int argc,char *argv[])
{
    pthread_t tid;
    int error;

    printf("Main thread is starting ... \n");

    error = pthread_create(&tid, NULL, create, NULL);

    if(error)
    {
        printf("thread is not created ... \n");
        return -1;
    }
    printf("The main process's pid is %d  \n",getpid());
    sleep(1);
    return 0;
}


    編譯方法:

  
gcc -Wall -lpthread pthread_id.c

    執(zhí)行結果:

Main thread is starting ...
The main process's pid is 3307 
New thread ....
This thread's id is 3086347152 
The process pid is 3307 

posted on 2008-10-13 15:35 閱讀(3944) 評論(3)  編輯 收藏 引用 所屬分類: liunx編程技術

評論

# re: Linux下多線程編程詳解  回復  更多評論   

void* (start_rtn)(void) 返回值是void類型的指針函數(shù)

應該是返回值是void*類型的函數(shù)指針吧
2013-06-03 22:13 | momognu

# re: Linux下多線程編程詳解  回復  更多評論   

void * (*start_rtn)(void) 返回值是void類型的函數(shù)指針
2013-06-03 22:28 | momognu

# re: Linux下多線程編程詳解  回復  更多評論   


void * (*start_rtn)(void *);
倒下了
2013-06-04 00:29 | momognu
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            午夜精品久久久久99热蜜桃导演| 国产欧美精品国产国产专区| 亚洲日本在线观看| 久久嫩草精品久久久精品一| 午夜免费久久久久| 亚洲欧美日韩第一区| 欧美综合77777色婷婷| 久久精品国产清高在天天线| 欧美中文在线观看| 欧美在线观看网站| 免费欧美在线视频| 亚洲精品乱码| 欧美在线视频网站| 久久精品成人一区二区三区| 欧美在线你懂的| 欧美成人午夜激情| 亚洲美女电影在线| 亚洲欧美日韩成人高清在线一区| 久久精品国产第一区二区三区最新章节| 久久精品国产69国产精品亚洲| 久久久蜜桃一区二区人| 欧美性猛交99久久久久99按摩 | 最新国产拍偷乱拍精品| 宅男噜噜噜66一区二区| 久久精品一级爱片| 国产目拍亚洲精品99久久精品| 在线看日韩av| 久久久综合网站| 午夜精品久久久久久久99樱桃 | 男女激情久久| 亚洲一区久久久| 欧美另类高清视频在线| 国内精品一区二区三区| 欧美影院久久久| 亚洲欧美中文另类| 国产自产v一区二区三区c| 香港久久久电影| 亚洲自拍高清| 黑人操亚洲美女惩罚| 久久久久久久高潮| 国产精品久久久久999| 国产精品嫩草99av在线| 亚洲国产激情| 久久综合色播五月| 久久久久久电影| 亚洲国产欧美一区二区三区久久| 久久精品国产99| 久久久xxx| 亚洲国产日韩一级| 亚洲精品影视| 国产精品成av人在线视午夜片| 亚洲婷婷综合色高清在线| 亚洲欧美成人网| 国产视频丨精品|在线观看| 久久久久9999亚洲精品| 久久久久久久欧美精品| 中文国产成人精品| 欧美在线在线| 亚洲社区在线观看| 久久av老司机精品网站导航| 日韩亚洲国产精品| 久久成人免费日本黄色| 亚洲视频欧美视频| 久久精品国产96久久久香蕉 | 亚洲春色另类小说| 亚洲天堂av高清| 亚洲免费精品| 乱中年女人伦av一区二区| 亚洲欧美日韩国产一区| 久久综合狠狠| 美女任你摸久久| 国产一区二区三区四区在线观看 | 亚洲电影中文字幕| 国产精品男gay被猛男狂揉视频| 亚洲高清不卡在线| 91久久久在线| 欧美人交a欧美精品| 亚洲国产视频一区| 一本大道久久a久久综合婷婷| 欧美mv日韩mv国产网站app| 欧美黑人一区二区三区| 99国产精品自拍| 欧美午夜精品久久久久久人妖| 日韩一级欧洲| 久久国产精品色婷婷| 一区二区三区在线观看视频| 久久久久久97三级| 91久久亚洲| 欧美一区二区网站| 亚洲风情亚aⅴ在线发布| 美国成人毛片| 亚洲视频成人| 久久综合久色欧美综合狠狠| 激情成人综合网| 欧美日韩中文字幕| 香蕉乱码成人久久天堂爱免费 | 久久偷窥视频| 日韩一区二区精品视频| 国产精品一卡二卡| 欧美精品一级| 老牛国产精品一区的观看方式| 亚洲精品一区中文| 免费h精品视频在线播放| 亚洲一区二区在线观看视频| 亚洲福利免费| 精品av久久久久电影| 国产精品久久久久高潮| 欧美激情第五页| 欧美精品一区三区在线观看| 久久激情视频久久| 午夜精品久久久久久久99黑人| 99成人在线| 亚洲人成在线观看一区二区| 麻豆精品传媒视频| 免费久久99精品国产自在现线| 午夜精品区一区二区三| 亚洲欧美日本精品| 欧美在线www| 久久久一二三| 欧美韩日一区二区| 亚洲精品久久| 亚洲欧美另类久久久精品2019| 亚洲视频在线观看| 欧美在线免费观看视频| 久久久久久久综合日本| 欧美成人午夜77777| 欧美日韩亚洲系列| 国产三级精品三级| 在线不卡欧美| 亚洲色图在线视频| 久久这里只有精品视频首页| 亚洲电影免费观看高清完整版在线| 亚洲激情av在线| 欧美一级理论片| 在线一区日本视频| 久久精品一区蜜桃臀影院 | 99热免费精品在线观看| 亚洲免费视频成人| 欧美黑人多人双交| 欧美在线视频在线播放完整版免费观看| 久久久五月婷婷| 欧美日韩成人在线观看| 国内成人精品2018免费看| 一区二区三区四区五区精品视频| 欧美有码在线观看视频| 在线亚洲一区| 欧美性大战久久久久久久蜜臀| 在线日韩中文| 免费观看成人www动漫视频| 欧美亚洲三区| 国产综合久久| 男人的天堂亚洲| 久久久久久久一区二区三区| 国产精品伊人日日| 午夜精品久久久99热福利| 妖精视频成人观看www| 国产精品高潮久久| 久久成人精品电影| 久久gogo国模裸体人体| 国产一区视频观看| 久久久久9999亚洲精品| 久久久www成人免费无遮挡大片| 韩国av一区二区三区| 欧美福利视频一区| 欧美三级电影网| 久久久免费精品视频| 欧美成人免费全部| 亚洲免费在线观看视频| 欧美一区午夜视频在线观看| 在线观看视频亚洲| 在线午夜精品| 91久久久久| 亚洲欧美成人一区二区三区| 亚洲国产经典视频| 亚洲中午字幕| 一本色道久久综合狠狠躁篇怎么玩 | 亚洲精品网址在线观看| 日韩一级大片在线| 精品成人一区二区| 亚洲一区高清| 日韩一级裸体免费视频| 久久人人爽人人爽| 久久久久亚洲综合| 国产精品羞羞答答| 日韩亚洲欧美精品| 99精品视频一区| 美女脱光内衣内裤视频久久网站| 亚洲尤物视频网| 欧美日韩在线视频首页| 亚洲盗摄视频| 日韩图片一区| 欧美日韩视频在线第一区| 亚洲国产婷婷香蕉久久久久久99 | 亚洲欧美日本日韩| 亚洲欧美欧美一区二区三区| 欧美日韩成人综合天天影院| 亚洲美女色禁图| 亚洲永久精品国产| 国产精品免费一区二区三区在线观看| 亚洲精品字幕|