Software Mechanisms For Pervasive And Autonomous Computing