This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Instrumentation, scheduler lock and unlock count is an equal?
- From: Nodir Kodirov <nodir dot qodirov at gmail dot com>
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 13 Jun 2010 14:39:27 +0900
- Subject: [ECOS] Instrumentation, scheduler lock and unlock count is an equal?
Hello all!
I am checking eCos application behavior with Instrumentation and I
have "strange" data. Application is to test MBox. There are 2 threads,
PROD thread produces N items and CONS tread consumes it all. When I
have N=60, scheduler LOCK count is 2473 and UNLOCK 3016. I checked for
other values of N (20, 40, 80,100) and count of UNLOCK is always
higher than LOCK around 20%. I think by concept and source code it
should be an equal, isn't it?
Am I having something wrong in Instrumentation or is there any reason
for scheduler lock and unlock count to be different?
Thanking in advance,
Nodir.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss