A method for allocating resources in a Device to Device, D2D, system, the method comprises: determining, by a base station, an edge area, to be D2D-resource coordinated, of a cell; allocating, by the base station, a pool of resources for a node in the edge area, wherein the node in the edge area obtains a resource in a distributed mode from the pool of resources, and reports the obtained resource to the base station; and determining, by the base station, a resulting resource for the node in the edge area according to the resource reported by the node in the edge area and collision occurring between the node in the edge area and a node in a central area; wherein the resource is a timeslot or a time-frequency block; wherein the collision is determined by: determining collision occurring between a node in a central area of a present cell, and a node in an edge area of an adjacent cell according to strong interference information reported by the node in the edge area of the present cell, positional information of the nodes, and positional information of any node occupying the timeslot with resource collision, the timeslot being indicated by the node reporting the strong interference information, and a shortest resource multiplexing distance, upon reception of the reported strong interference information, and/or determining collision occurring between a node in a central area of the present cell, and a node in a central area of an adjacent cell according to strong interference information reported by the node in the central area of the present cell, positional information of the nodes, and positional information of any node occupying the timeslot with resource collision, the timeslot being indicated by the node reporting the strong interference information, and a shortest resource multiplexing distance, upon reception of reported strong interference information; wherein the shortest resource multiplexing distance is N times a shortest communication distance, where N is a number greater than or equal to 2. determining, by a base station, an edge area, to be D2D-resource coordinated, of a cell; allocating, by the base station, a pool of resources for a node in the edge area, wherein the node in the edge area obtains a resource in a distributed mode from the pool of resources, and reports the obtained resource to the base station; and determining, by the base station, a resulting resource for the node in the edge area according to the resource reported by the node in the edge area and collision occurring between the node in the edge area and a node in a central area; wherein the resource is a timeslot or a time-frequency block; wherein the collision is determined by: determining collision occurring between a node in a central area of a present cell, and a node in an edge area of an adjacent cell according to strong interference information reported by the node in the edge area of the present cell, positional information of the nodes, and positional information of any node occupying the timeslot with resource collision, the timeslot being indicated by the node reporting the strong interference information, and a shortest resource multiplexing distance, upon reception of the reported strong interference information, and/or determining collision occurring between a node in a central area of the present cell, and a node in a central area of an adjacent cell according to strong interference information reported by the node in the central area of the present cell, positional information of the nodes, and positional information of any node occupying the timeslot with resource collision, the timeslot being indicated by the node reporting the strong interference information, and a shortest resource multiplexing distance, upon reception of reported strong interference information; wherein the shortest resource multiplexing distance is N times a shortest communication distance, where N is a number greater than or equal to 2. determining collision occurring between a node in a central area of a present cell, and a node in an edge area of an adjacent cell according to strong interference information reported by the node in the edge area of the present cell, positional information of the nodes, and positional information of any node occupying the timeslot with resource collision, the timeslot being indicated by the node reporting the strong interference information, and a shortest resource multiplexing distance, upon reception of the reported strong interference information, and/or determining collision occurring between a node in a central area of the present cell, and a node in a central area of an adjacent cell according to strong interference information reported by the node in the central area of the present cell, positional information of the nodes, and positional information of any node occupying the timeslot with resource collision, the timeslot being indicated by the node reporting the strong interference information, and a shortest resource multiplexing distance, upon reception of reported strong interference information; wherein the shortest resource multiplexing distance is N times a shortest communication distance, where N is a number greater than or equal to 2.