Question

In: Computer Science

Consider Unix, Linux, MacOS, Android and Windows operating systems. Consider the primary application of each in...

Consider Unix, Linux, MacOS, Android and Windows operating systems. Consider the primary application of each in the marketplace. How does each OS implement threads? How does the usage of threads impact application (usage) ?

Solutions

Expert Solution

nux,MacOS,Android and Windows

Unix OS mostly used in modern servers,workstations and mobile servers. it plays a major role in TCP/IP networking protocol and also act as a backbone of the internet services such as chat,video conferencing etc.

Linux : Open source OS which is mainly focus on Web Serving,networking,databases,Scientific Computing etc.various popular companies like  Google, Amazone, Dreamworks are uses to ensure security and stability of their network.

Mac OS mainly focus on file sharing, network browsing, and multiple user accounts across the internet.

Android is a Linux based operating system designed for tablet computer and Smart phones.It controls the robotic vehicle using an android application. The remote operation is achieved by smart phone or tablet through touch screen

windows support automation of offline and online applications in the areas of e-commerce and e business.

Implementation of threads in Unix,Linux, Mac OS,Android, Windows

Implementation of threads in differ from OS to OS.

Unix

Linux

  • Creating a (default) thread
  • Detaching a thread
  • Terminating a thread

Linux implements all threads as standard processes. The Linux kernel does not provide any special scheduling semantics or data structures to represent threads. Instead, a thread is merely a process that shares certain resources with other processes. Each thread has a unique task_struct and appears to the kernel as a normal process (which just happens to share resources, such as an address space, with other processes)

Mac OS

Android

Creating a Thread

Creating low-level threads is relatively simple. In all cases, you must have a method to act as your thread’s main entry point and you must use one of the available thread routines to start your thread.

Eg: NSThread class

threading components into two basic categories:

  1. Threads that are attached to an activity/fragment: These threads are tied to the lifecycle of the activity/fragment and are terminated as soon as the activity/fragment is destroyed.
  2. Threads that are not attached to any activity/fragment: These threads can continue to run beyond the lifetime of the activity/fragment (if any) from which they were spawned.

AsyncTask is the most basic Android component for threading.

Windows

  • User(-level) threads – management by user-level threads library.
    • Windows threads
    • Java threads


Related Solutions

a) b) c) Compare and contrast systems programming in Windows as against systems programming in Unix/Linux....
a) b) c) Compare and contrast systems programming in Windows as against systems programming in Unix/Linux. CR, 8 Explain the term structured exception handling (SEH) as used in systems programming and give a practical example of how it can be used to handle errors in a block of code. AP, 7 Write a C/C++ system program to delete an unwanted file in the Windows file system. Compile and run the program and copy the source code into your answer booklet....
Differences Between Linux and Windows Operating Systems Two key differences between a Linux operating system and...
Differences Between Linux and Windows Operating Systems Two key differences between a Linux operating system and a Windows operating system are the concepts of “mounting” and “drive” letters. Provide an example for each. Why is it important to plan disk partitioning before installing Linux? Discuss the advantages of disk partitioning. Also discuss what logical volume management (LVM) is and why or why you might use it.
Compare the design goals and evolution of Android and Windows operating systems. [10 Marks]
Compare the design goals and evolution of Android and Windows operating systems. [10 Marks]
what is the major change of Unix, Linux and Android. what there evelution ? what they occor? discuss this
what is the major change of Unix, Linux and Android. what there evelution ? what they occor? discuss this
Why are general-purpose operating systems, such as Linux or Windows, not suitable as real-time system platforms?
Why are general-purpose operating systems, such as Linux or Windows, not suitable as real-time system platforms?
application that uses linux operating system amd justify the linux operating system. provide a suitable application...
application that uses linux operating system amd justify the linux operating system. provide a suitable application that uses linux os and justify the usage of linux os in the considered application.
Pertaining to the Linux operating system, which is a variant of Unix, DISCUSS Topics that will...
Pertaining to the Linux operating system, which is a variant of Unix, DISCUSS Topics that will include things such as history, Linux kernel, and design principles.
Study PC operating system such as windows and linux etc and mobile operating system such as...
Study PC operating system such as windows and linux etc and mobile operating system such as Android and iOS, find out whether there are functions and features that are provided in PC OS but not in mobile OS, and if there is any, analyze why these functions and features are not provided by these mobile OS. In your opinion for the future development will PC operating system and mobile operating system be the same or different? Give the details.
CSC241_FA20_01 Windows Server Operating Systems
CSC241_FA20_01 Windows Server Operating Systems
What have been the major changes in the file systems for Windows and for Linux?
What have been the major changes in the file systems for Windows and for Linux?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT