native code example
Example 1: native definition
' *Designed* for, or built into, a *given system*.
' Usually used [by people] to describe
' a programming language (and programs written in it)
' *associated* with a given processor, computer, or translator.
Example 2: react native
npx react-native init AwesomeProject
Example 3: react native
React Native is an open-source mobile application framework created by Facebook.
It is used to develop applications for Android, iOS, Web and UWP by enabling
developers to use React along with native platform capabilities.
Example 4: native
----- pid 609 at 2019-02-16 05:00:10 -----
Cmd line: com.android.systemui
...
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x748ef1f0 self=0xb0851000
| sysTid=609 nice=0 cgrp=default sched=0/0 handle=0xb4a3f494
| state=S schedstat=( 392030973719 182772499142 1025298 ) utm=33261 stm=5941 core=2 HZ=100
| stack=0xbe5fa000-0xbe5fc000 stackSize=8MB
| held mutexes=
kernel: (couldn't read /proc/self/task/609/stack)
native: #00 pc 00019d74 /system/lib/libc.so (syscall+28)
native: #01 pc 0001d11d /system/lib/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+88)
native: #02 pc 00063a99 /system/lib/libc.so (pthread_cond_wait+32)
native: #03 pc 0037cb2b /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::postAndWait()+174)
native: #04 pc 0037ca59 /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::drawFrame()+24)
at android.view.ThreadedRenderer.nSyncAndDrawFrame(Native method)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:823)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:3316)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3120)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2489)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1465)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7188)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
at android.view.Choreographer.doCallbacks(Choreographer.java:761)
at android.view.Choreographer.doFrame(Choreographer.java:696)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)