[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/appdemo/demo1.c b/ap/app/appdemo/demo1.c
new file mode 100755
index 0000000..2f25b93
--- /dev/null
+++ b/ap/app/appdemo/demo1.c
@@ -0,0 +1,47 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <pthread.h>
+
+static void *thread_func(void *arg)
+{
+	char buffer[10];
+
+	while(1)
+	{
+		printf("thread_func\n");
+		sleep(1);
+	}
+	pthread_exit(0);
+}
+
+int main(int argc,char *argv[])
+{
+	pthread_attr_t attr;
+	pthread_t tid;
+	int s;
+
+	s = pthread_attr_init(&attr);
+	if (s != 0)
+	{
+		perror("pthread_attr_init error\n");
+		exit(-1);
+	}
+
+	
+	s = pthread_create(&tid, &attr, thread_func, NULL);
+	if (s != 0)
+	{
+		perror("pthread_create error\n");
+		exit(-2);
+	}
+
+	s = pthread_join(tid, NULL);
+	if (s != 0)
+	{
+		perror("pthread_join error\n");
+		exit(-3);
+	}
+
+	return 0;
+}