Hey!

I'm trying to implement a simple client and a simple server using the
node.js bindings I have so far:

OCInit
OCStop
OCProcess
OCCreateResource
OCDeleteResource
OCStartPresence
OCStopPresence
OCDoResource

To that end, I'm looking at

resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp

and

resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp

and I've observed that when I run either occlient or occserver, it
runs at 200% CPU, where the CPU usage is entirely of the system,
rather than the user variety. I don't get why that is, especially
since it sleeps for two seconds at a time.

Is this to be expected?

Cheers!



Gabriel

P.S.: I've built and run occlient and occserver from master
(4f0bfbea4c09efc13cbf4d768d0d9d8c87026e21) on Fedora 20 x86_64 in
debug mode when I made the above-mentioned observation.

Reply via email to