ITworld.com
  Search  
ITworld Home Page ITworld Webcasts ITworld White Papers ITworld Newsletters ITworld News ITworld Topics Careers ITworld Voices ITwhirled Changing the way you view IT

The hidden costs of the multi-tasking software developer

ITworld.com 10/19/2007

Sean McGrath, ITworld.com

We software developers work with words for a living. We have words for everything. At the drop of a hat, we will appropriate an existing English word/phrase and bend it to some new purpose. Words like "function" or "service" or "filter" for example. Phrases like "load balancing" or "multiple inheritance" or "context switching"...

On this topic

Hang on a moment. That last one is a bit different I think. Back up the truck a little here. The flow of language I speak of is not all one way. There are times when the software world has a word/phrase for something which flows from geekdom into the mainstream. This is one of them I think.

Yesterday, a colleague complained that the timesheet system we use at my day job does not have an entry for context switching[1]. The geeks in the room knew immediately what she meant but everyone else was baffled.

The phrase relates to a common computing concept of a single CPU juggling many tasks at the same time. In order to give the illusion that lots of things are going on at the same time, the CPU jumps very quickly between a bunch of separate tasks creating the illusion of parallel activity.

Obviously, for this to be an effective strategy, the time it takes to switch from one task to another, is critical. This process is known as context switching and CPUs typically do it very, very quickly indeed.

For human beings however, context switching is a much, much slower process. Consider a software developer working on multiple, distinct projects at various times. If the a.m. is to be spent on project A, that can easily go into the timesheet. No problem. If the afternoon is to be spent on project B, adding that to the timesheet is a little more problematic. The problem arises from the non-trivial amount of time it can take to mentally switch from project A to project B. The time involved can be anything from minutes to hours and even days.

Over the course of a year, this time can really add up and it can be infernally difficult to explain to non-technical folk why context switching can be so time consuming. In extreme cases, developers can spend more time context switching between projects than they do actually making progress on any project.

Which brings to mind another phrase us developers like to use -- a "disk thrashing"[2]. This occurs when there isn't enough memory and stuff needs to be parked to disk only to be hauled in again, the next time the context switches.

It is easy to spot when this happens as the machine tends to make unpleasant whirring noises and flash red a lot. Come to think of it, this is often the best way of spotting developers caught in endless context switches too.

[1] http://en.wikipedia.org/wiki/Context_switch
[2] http://www.webopedia.com/TERM/D/disk_thrashing.html

Sean McGrath is CTO of Propylon. He is an internationally acknowledged authority on XML and related standards. He served as an invited expert to the W3C's Expert Group that defined XML in 1998. He is the author of three books on markup languages published by Prentice Hall. Visit his site at: http://seanmcgrath.blogspot.com.

Read more of Sean McGrath's ITworld.com columns here.




Sponsored Links

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.
Closing the Gap Between Patient and Caregiver
Optical network solutions from AT&T provide scalable, secure bandwidth to keep the health care provider and the patient connected, despite increasing network traffic.
Protecting the Enterprise Network Through Web Security
New focus is being placed on securing Web-based threats.
FREE SECURITY AUDIT RESOURCES
Take a Risk Assessment, get White Papers on the Latest Threats, listen to Malware Expert Webcasts.
SOLVE SUPPORT ISSUES on the First Call!
REMOTELY CONTROL AND CONFIGURE SYSTEMS. Easily install applications, updates. All from your Desktop!
» Buy a link now

Advertisements
Sponsored links
Bring harmony to your mix of UNIX-Linux-Windows computing environments
KODAK i1400 Series Scanners stand up to the challenge
Locate Hidden Software on business PCs with this free tool
Top 5 Reasons to Combine App Performance and Security
 Home   Application Development
www.itworld.com    open.itworld.com     security.itworld.com     smallbusiness.itworld.com
storage.itworld.com     utilitycomputing.itworld.com     wireless.itworld.com

 
Contact Us   About Us   Privacy Policy    Terms of Service   Reprints  

CIO   Computerworld   CSO   GamePro   Games.net   Industry Standard   Infoworld   ITworld  
JavaWorld   LinuxWorld  MacUser   Macworld   Network World   PC World   Playlist  

DEMO   IDG Connect   IDG Knowledge Hub   IDG TechNetwork   IDG World Expo  

Copyright © Computerworld, Inc. All rights reserved

Reproduction in whole or in part in any form or medium without express written permission of Computerworld Inc. is prohibited. Computerworld and Computerworld.com and the respective logos are trademarks of International Data Group Inc.