An electronic device , comprising: a housing including a first housing and a second housing rotatably connected to the first housing ; a first sensor disposed in the first housing ; a second sensor disposed in the second housing ; a first processor ; and a second processor , wherein the first processor is configured to: obtain , via the first sensor , first information about movement of the electronic device , obtain , via the second sensor , second information about the movement of the electronic device , determine an arrangement state of the electronic device associated with an angle formed by the first housing and the second housing of the electronic device , based on a comparison of the first information and the second information, characterized by a display disposed across the first housing and the second housing , wherein the first processor is further configured to determine a type of the movement of the electronic device based on at least one of the first information or the second information, and provide a command to control the second processor based on both the determined type of the movement of the electronic device and the determined arrangement state of the electronic device , and wherein the second processor is configured to perform a specified operation based on the command. a housing including a first housing and a second housing rotatably connected to the first housing ; a first sensor disposed in the first housing ; a second sensor disposed in the second housing ; a first processor ; and a second processor , wherein the first processor is configured to: obtain , via the first sensor , first information about movement of the electronic device , obtain , via the second sensor , second information about the movement of the electronic device , determine an arrangement state of the electronic device associated with an angle formed by the first housing and the second housing of the electronic device , based on a comparison of the first information and the second information, characterized by a display disposed across the first housing and the second housing , wherein the first processor is further configured to determine a type of the movement of the electronic device based on at least one of the first information or the second information, and provide a command to control the second processor based on both the determined type of the movement of the electronic device and the determined arrangement state of the electronic device , and wherein the second processor is configured to perform a specified operation based on the command. obtain , via the first sensor , first information about movement of the electronic device , obtain , via the second sensor , second information about the movement of the electronic device , determine an arrangement state of the electronic device associated with an angle formed by the first housing and the second housing of the electronic device , based on a comparison of the first information and the second information, characterized by a display disposed across the first housing and the second housing , wherein the first processor is further configured to determine a type of the movement of the electronic device based on at least one of the first information or the second information, and provide a command to control the second processor based on both the determined type of the movement of the electronic device and the determined arrangement state of the electronic device , and wherein the second processor is configured to perform a specified operation based on the command. <EOS>