Change scheduling policy to a round-robin policy 09/274409/4
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 28 Apr 2022 00:37:44 +0000 (09:37 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 29 Apr 2022 05:49:10 +0000 (14:49 +0900)
commitfab7bca0690188d34fbb5242998cab2c5ae6e485
treedb4324b643a3112510c60e3c1ae8f0392ee22678
parentbad95bd616b7902a2ca689f6d51cf1ee270b3225
Change scheduling policy to a round-robin policy

Before creating the cache information(CREATE_CACHE), the worker thread of
pkginfo-server adjusts scheduling policy to the round-robin policy to improve
the performance temporaily. And, the CREATE_CACHE command is started after
the worker threads are created immediately.
Calling TrimCache() is removed from TrimMemory().

Change-Id: I1ecc2aabdbdb5f171b411704bd5cbef15c0e17b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
packaging/pkgmgr-info.service
src/server/runner.cc
src/server/worker_thread.cc
src/server/worker_thread.hh