How does the operating system know which application to send the mouse event to? [closed] - operating-system

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Because there could possibly be so many windows open at different spots. Some windows are active some are not, how does the OS delegate the mouse event based on where the application window is? I'm a little lost.

The OS (or a dedicated program that comes as part of it) keeps track of the windows (their locations, sizes, depth w.r.t. other windows, state of "activeness") and the cursor position and can figure out which window is right below the mouse pointer. And that's all there is.

System call is made by software to OS, so OS returns response to software not to mouse, If windows are from same software it still applies. Softwares are managed in table in background.
id, path, request
1, c:\word.exe, 2
2, c:\word.exe, 3
so basicaly OS knows from where the request was made. "Operating System Concepts Essentials" covers questions like these.

Related

Before CLI, what interface was used to program computers? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
NOTE: I looked through all of the other Stack Exchange Tech sites, and couldn't find a better place to post this question. If you believe that there is a preferable site, feel free to migrate the question.
As I have been working through the CLI on my Raspberry Pi, I have begun to wonder what was used before the CLI. How were computers programmed without even a rudimentary interface? And how did we go from that ancient interface to the CLI, and eventually the GUI?
Thanks!
Before the CLI: Patch cords. Front panel lights and switches. Punched cards. Punched 35mm film. Punched sheet paper. Paper tape. Magnetic pencil dots on paper. Analog knobs and dials. Initial gear positions. And that's just a partial list.

How can i interact with a remote GUI using psexec? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to test a remote applications using PSExec, the problem is i can't interact with it. Is there a solution?
Not really.
PSexec works by remotely creating a service configured to run a command of your choice. In more recent versions of windows OS (Vista, 2008, 7) a service is not allowed to have an interactive component. Yes, there are deprecated options to allow interactivity, but windows will give it a new windows session that is separate from others. The user will see a prompt to reveal any GUI componant that is kind of similar to User Account Control. When you accept the prompt, a wholly blank desktop is loaded with the GUI part of your service.

What will be battery life of iPhone, if I use CLLocationManger with kCLLocationAccuracyThreeKilometers? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
If I am using CLLocationManger with kCLLocationAccuracyThreeKilometers for getting Coordinates and never stop it.
Have you any idea that in how much time my iPhone battery will drain?
This question is difficult to answer as there are many variables involved, such as, device model, device age, OS version, GPS chipset (varies among device models), ... This is one of the reasons why you should strive to optimize your usage of the GPS functionality.
Apple, for example, caches location data on regular time intervals so it can provide third party applications with location data (1) fast and (2) without the need to fire up the onboard GPS, which requires time and power. (For your information, cached location data is of course not an option if your application relies heavily on location services).
In short, don't count the battery for your application to function properly. Instead, make clever use of the location services.

Develop an iPhone app on Windows 7 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to develop an iPhone application on the Windows platform. I have Windows 7 installed on my system. Recently I come to know that we can also make iPhone apps on Windows.
A few days later I installed software to make iPhone app on my window machine but somehow I got a virus. Therefore before taking this step again, I want to know that it is possible to make an iPhone application on Windows 7. If yes then which is the best way to do this?
You are probably aiming for something like Xamarin.
Although development for iDevices should be possible on a Windows machine, the best experience will probably always be on a OSX device.
On a Windows machine you will always have to do some extra work to debug, emulate, etc.
Dont forget the Monocross: http://www.monocross.net/
Or VS Nomad: http://www.vsnomad.com/

Can I write an OS in machine code? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can I write an operating system using machine language directly?
Please give me a general idea or sources as to how to do it.
First, study the x86 or ARM instruction sets. Then, study up on operating systems. You'll see why it's not a great idea: it's like filling a sandbox one grain at a time with tweezers.
Yes, all you need is a lot of patience, sanity, and a binary editor.
After awhile you will realize why assemblers were created, which is the lowest level I would generally bother going to.
** yes you can but this is very diffecult for any one
and if you do this what make programmers and all design programming lanaguages to make things
easily comparing by machine code
and this is project as you ask
it's an OS written in machine code it's still under developing
http://www.magicschoolbook.com/computing/os-project
note : your name is like my name iam glad to answer you
best wishes**