Set the RS thread priority.
diff --git a/rsContext.cpp b/rsContext.cpp
index abc5f45..c915c56 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -179,7 +179,20 @@
     gCon = this;
 
     LOGE("CC 2");
-    int status = pthread_create(&mThreadId, NULL, threadProc, this);
+    int status;
+    pthread_attr_t threadAttr;
+
+    status = pthread_attr_init(&threadAttr);
+    if (status) {
+        LOGE("Failed to init thread attribute.");
+        return;
+    }
+
+    sched_param sparam;
+    sparam.sched_priority = ANDROID_PRIORITY_DISPLAY;
+    pthread_attr_setschedparam(&threadAttr, &sparam);
+
+    status = pthread_create(&mThreadId, &threadAttr, threadProc, this);
     if (status) {
         LOGE("Failed to start rs context thread.");
     }
@@ -191,8 +204,7 @@
     }
     LOGE("CC 4");
 
-
-
+    pthread_attr_destroy(&threadAttr);
 }
 
 Context::~Context()