Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
5 ANSWERS
Deeksha Jain
Written 98w ago
2. CPU utilisation
Tool to measure : top on Linux
You could check if the program is cpu bound by running "top" on linux.
3. I/O bound
Tool to measure : iostat on Linux
Sometimes a program is IO bound, due to disk reads etc, you could check this
on linux with iostat command.
5. Recursion:
Recursion can cause a lot of overhead, if the structure of function permits,
then use tail recursion, to avoid the stack overhead.
6. Language Choice:
C is faster when compare to Java because it is low level language. Thus
many network security applications are written in C, where speed matters.
Sign In
configuration might work best for it.
8. Contention:
If there are multiple threads, they are synchronised to access common
resources, then there can be contention for the resources, which causes
threads to wait.
9. Buggy Synchronization:
Tools to detect: Helgrind
If there are deadlocks, the program will stop working or the two threads
involved in deadlock will stop. Helgrind is a brilliant tool that you could use to
detect potential deadlocks, data race conditions, misuse of posix thread API.
3.6k Views · View Upvotes
Share
What is the best way to describe compile time and run time difference for a
program?
147 Views
What are the factors that affect the selection of a programming language for
a large scale software project?
535 Views
What is the compile time constant and run time constant in the C
programming language?
687 Views
Learning to Program: What is the difference between run time error and
compilation error?
2,875 Views
How would I create a message in Lua that only runs the first time the
program is run?
866 Views
OTHER ANSWERS
CPU speed, memory load versus available RAM, available cache size, hard
drive speed (if file-system-intensive), network speed (if network-intensive),
(various) bus speed, code optimization, compiled versus interpreted,
onscreen feeback display versus "running silent", hard drive fragmentation (if
Sign In
Share